5 Jun
2024
5 Jun
'24
11:33 p.m.
Jacek Caban (@jacek) commented about dlls/wininet/http.c:
if (maxlen == -1) maxlen = sizeof(req->read_buf);
+ NETCON_set_timeout(req->netconn, FALSE, req->hdr.receive_timeout);
Setting the timeout on the socket is quite expensive (requires a wineserver call). Maybe we could store the last set timeout separate from configure timeout and update socket timeout only when they don't match? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3518#note_72541