summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-12-03 00:04:48 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-12-03 00:04:48 +0800
commit998d6cdfc48bbe9101b87457edbc0e3f2fe36fe0 (patch)
tree233908448fc7a085ad2b9ff75e72882e881e2cb6 /svr-main.c
parentddc10b2d0cbfe757cafc453708aa919039e773d6 (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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/svr-main.c b/svr-main.c
index c4b8c48..73b281b 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -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;