Fix Version/s: None
In recent version of ws2_32 wine tests there is a test that checks if write flag is cleared (caller should stop calling send) when msafd/tcpip data queue is full.
the test is doing infinite send of 1KB data until flag is cleared:
and msafd/tcpip use a lot of non-paged memory to copy the data until it is sent, but they never clear properly the bit that they are full.
Let me explain a little bit more what happens, because all 3 parts should work together to resolve this issue properly.
ws2_32 sends data to msafd, msafd checks its buffer and sends it to tcpip, tcpip puts it into lwip queue for sending (this is how lwip operates) and gets sent, at this point tcpip tells msafd it has sent the data, so msafd marks it as sent and that buffer is empty, but... there is another queue (in lwip) with sent, but unACKed (yet) packets, that wait. I tried several ways to mark this situation from tcpip to msafd (msafd should clear the flag for sending), but I wasn't successful in this endeavor.
I hope this additional information will help someone.