Best Answer farmr, 23 April 2015 - 05:35 PM
Figured it out. It was not a pebkac after all.
I'm using a single file web server (mongoose), either by design or default configuration it sends a response as soon as it gets first TCP packet, and instead of waiting for the complete request to arrive - it sends a response. And client fails to receive it (for whatever reason, perhaps it resets inbound buffer after last packet is sent?).
Anyhow, it works as expected if I use a different web server (nancyfx, in my case).
Go to the full post