Mercurial > dropbear
comparison svr-x11fwd.c @ 941:5daedffd0769
Set tcp priority as follows:
if (connecting || ptys || x11) tos = LOWDELAY;
else if (tcp_forwards) tos = 0;
else tos = BULK;
TCP forwards could be either lowdelay or bulk, hence the default priority.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 16 Jul 2014 22:53:32 +0800 |
parents | 0fd32a552ea5 |
children | d3925ed45a85 |
comparison
equal
deleted
inserted
replaced
940:e9dfb6d15193 | 941:5daedffd0769 |
---|---|
180 remove_listener(chansess->x11listener); | 180 remove_listener(chansess->x11listener); |
181 chansess->x11listener = NULL; | 181 chansess->x11listener = NULL; |
182 } | 182 } |
183 } | 183 } |
184 | 184 |
185 static int x11_inithandler(struct Channel *channel) { | |
186 channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; | |
187 return 0; | |
188 } | |
189 | |
185 static const struct ChanType chan_x11 = { | 190 static const struct ChanType chan_x11 = { |
186 0, /* sepfds */ | 191 0, /* sepfds */ |
187 "x11", | 192 "x11", |
188 NULL, /* inithandler */ | 193 x11_inithandler, /* inithandler */ |
189 NULL, /* checkclose */ | 194 NULL, /* checkclose */ |
190 NULL, /* reqhandler */ | 195 NULL, /* reqhandler */ |
191 NULL /* closehandler */ | 196 NULL /* closehandler */ |
192 }; | 197 }; |
193 | 198 |