diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-12-03 00:04:48 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-12-03 00:04:48 +0800 |
commit | 998d6cdfc48bbe9101b87457edbc0e3f2fe36fe0 (patch) | |
tree | 233908448fc7a085ad2b9ff75e72882e881e2cb6 /svr-main.c | |
parent | ddc10b2d0cbfe757cafc453708aa919039e773d6 (diff) |
- Sockets are set to lowdelay priority initially to improve conneciton setup
time
- Set non-pty connections to bulk for client and server
Diffstat (limited to 'svr-main.c')
-rw-r--r-- | svr-main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -137,6 +137,11 @@ void main_noinetd() { 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; |