Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
870:80af450dae76 | 871:aa689d140928 |
---|---|
135 if (listensockcount == 0) | 135 if (listensockcount == 0) |
136 { | 136 { |
137 dropbear_exit("No listening ports available."); | 137 dropbear_exit("No listening ports available."); |
138 } | 138 } |
139 | 139 |
140 for (i = 0; i < listensockcount; i++) { | |
141 set_sock_priority(listensocks[i], DROPBEAR_PRIO_LOWDELAY); | |
142 FD_SET(listensocks[i], &fds); | |
143 } | |
144 | |
140 /* fork */ | 145 /* fork */ |
141 if (svr_opts.forkbg) { | 146 if (svr_opts.forkbg) { |
142 int closefds = 0; | 147 int closefds = 0; |
143 #ifndef DEBUG_TRACE | 148 #ifndef DEBUG_TRACE |
144 if (!svr_opts.usingsyslog) { | 149 if (!svr_opts.usingsyslog) { |