Mercurial > dropbear
diff svr-main.c @ 871:aa689d140928
- Sockets are set to lowdelay priority initially to improve conneciton setup
time
- Set non-pty connections to bulk for client and server
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 03 Dec 2013 00:04:48 +0800 |
parents | 220f55d540ae |
children | 860e3522f8fc |
line wrap: on
line diff
--- a/svr-main.c Mon Dec 02 22:55:43 2013 +0800 +++ b/svr-main.c Tue Dec 03 00:04:48 2013 +0800 @@ -137,6 +137,11 @@ dropbear_exit("No listening ports available."); } + for (i = 0; i < listensockcount; i++) { + set_sock_priority(listensocks[i], DROPBEAR_PRIO_LOWDELAY); + FD_SET(listensocks[i], &fds); + } + /* fork */ if (svr_opts.forkbg) { int closefds = 0;