From c2a71b0d1dd8f3be50993207c61423d22bc3f4bf Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 18 Apr 2003 09:00:37 +0000 Subject: [PATCH] Missed out a couple of uxsel_tell() which were hanging forwarded X connections in at least some situations. Oops. git-svn-id: svn://svn.tartarus.org/sgt/putty@3128 cda61777-01e9-0310-a592-d414129be87e --- unix/uxnet.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/unix/uxnet.c b/unix/uxnet.c index 8ae0c2f6..9d9e03bc 100644 --- a/unix/uxnet.c +++ b/unix/uxnet.c @@ -774,6 +774,12 @@ static int sk_tcp_write(Socket sock, const char *buf, int len) if (s->writable) try_send(s); + /* + * Update the select() status to correctly reflect whether or + * not we should be selecting for write. + */ + uxsel_tell(s); + return bufchain_size(&s->output_data); } @@ -795,6 +801,12 @@ static int sk_tcp_write_oob(Socket sock, const char *buf, int len) if (s->writable) try_send(s); + /* + * Update the select() status to correctly reflect whether or + * not we should be selecting for write. + */ + uxsel_tell(s); + return s->sending_oob; } -- 2.11.0