<p>When I Write file using large chunks over lan connection the packets sometimes flood the server resauilting with BadMessage with any subsequent call. It can be solved by using CountdownEvent in WriteRequest.</p><br>
Comments: ** Comment from web user: olegkap **
Comments: ** Comment from web user: olegkap **
Well,
Actually what happens now is that I count how many chunks I sent and I exit only when I receive response to all requests sent.
In my tests it actually happened that it always manage to send 6 chunks at a time.
I just got another idea overnight so will try to refactor this piece of code even further but the idea remains to send out as many chunks at a time as possible and then simply to wait for all of them to be processed.
Thanks,
Oleg