Martin Nilsson (Coppermist) @ Pike (-) developers forum wrote:
My testcase works now. Thanks.
You might want to try using the Shufflerised Server.Request mode, simply use: void httprequest(object request) { request->set_mode(Protocols.HTTP.Server.Request.SHUFFLER); ... }
I'm using that in production on a busy server. Works fine. Allows me to exceed 100% CPU with one pike instance.
The advantages (done automatically if given the opportunity): - Less systemcalls (partly due to the use of writev). - Zero-copy output. - Optimally filled first packet (reduces number of packets on the wire). - Reduced latency in the initial response packet.