diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:34:52 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:34:52 +1100 |
commit | 73f1074272add17aeaaff10c5ec6ab310e513d9d (patch) | |
tree | 7e1cb3b483b9cf7e7e109461733a9ddc4a7f6aaa /nchan.c | |
parent | 914bef437e7b80da027116e140e41746dafc45ee (diff) |
- markus@cvs.openbsd.org 2002/01/21 23:27:10
[channels.c nchan.c]
cleanup channels faster if the are empty and we are in drain-state; ok deraadt@
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: nchan.c,v 1.43 2002/01/14 13:57:03 markus Exp $"); | 26 | RCSID("$OpenBSD: nchan.c,v 1.44 2002/01/21 23:27:10 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh1.h" | 28 | #include "ssh1.h" |
29 | #include "ssh2.h" | 29 | #include "ssh2.h" |
@@ -364,6 +364,9 @@ chan_rcvd_ieof(Channel *c) | |||
364 | chan_rcvd_eof2(c); | 364 | chan_rcvd_eof2(c); |
365 | else | 365 | else |
366 | chan_rcvd_ieof1(c); | 366 | chan_rcvd_ieof1(c); |
367 | if (c->ostate == CHAN_OUTPUT_WAIT_DRAIN && | ||
368 | buffer_len(&c->output) == 0) | ||
369 | chan_obuf_empty(c); | ||
367 | } | 370 | } |
368 | void | 371 | void |
369 | chan_rcvd_oclose(Channel *c) | 372 | chan_rcvd_oclose(Channel *c) |