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?