mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
After we thaw a frozen socket, we apparently need to restart the
WSAAsyncSelect or else Windows loses read events. [originally from svn r5521]
This commit is contained in:
parent
5eb26fa459
commit
82f82fdb6d
@ -1516,9 +1516,12 @@ static void sk_tcp_set_frozen(Socket sock, int is_frozen)
|
||||
if (s->frozen == is_frozen)
|
||||
return;
|
||||
s->frozen = is_frozen;
|
||||
if (!is_frozen && s->frozen_readable) {
|
||||
char c;
|
||||
p_recv(s->s, &c, 1, MSG_PEEK);
|
||||
if (!is_frozen) {
|
||||
do_select(s->s, 1);
|
||||
if (s->frozen_readable) {
|
||||
char c;
|
||||
p_recv(s->s, &c, 1, MSG_PEEK);
|
||||
}
|
||||
}
|
||||
s->frozen_readable = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user