On 6/6/22 23:02, Paul Gofman (@gofman) wrote:
I think somewhat similar should happen with normal winhttp requests (I was doing some brief tests around that back then) and that should hopefully be easy to add incrementally after this patchset.
Then, sends for websockets should most likely also be cancelled the same way although that is a bit harder to test as most of the time sends are processed right away before returing from WinHttpWebSocketSend (although should be possible as out of tree test which might be flaky).
The patches here address cancelling web socket receive operation (including receiving web socket close status).
Eh, I am missing sign-off and also test in notification.c line 1179 is flaky (would comment out the other thread requirement, the same comment as for the next nest on line 1213 applies), but I will probably wait for some initial feedback before resending the whole series.