7 Jun
2022
7 Jun
'22
12:54 p.m.
Hans Leidekker (@hans) commented about dlls/winhttp/request.c:
return !ret; }
+static void socket_handle_closing( struct object_header *hdr ) +{ + struct socket *socket = (struct socket *)hdr; + + if (socket->request->netconn->secure) + { + cancel_queue( &socket->send_q ); + cancel_queue( &socket->recv_q ); + } + if (!is_queue_empty( &socket->send_q ) || !is_queue_empty( &socket->recv_q )) + netconn_cancel_io( socket->request->netconn ); +}
I doesn't make a lot of sense that async behavior depends on the connection being secure. Do we really need to replicate this? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/195#note_1639