On Thu, Mar 17, 2011 at 8:55 AM, Simon Reavely <[email protected]> wrote:
> Hi,
>
> I am using C# thrift with the HttpClient, talking to a Java HttpServlet.
> Java clients work fine, but the performance of my C# clients is awful (like
> 42ms)
>
> I found that if I changed
> connection.ProtocolVersion = HttpVersion.Version10;
> to
> connection.ProtocolVersion = HttpVersion.Version11;
>
> ...the response time drops to 3ms.
>
> Anyone else experienced this? Surely this is a bug?
>
> Cheers,
> Simon
> --
> Simon Reavely
> [email protected]
>



Http 1.1 introduced keep-alive so multiple messages could be sent on a
single tcp connection. This looked like a good place to start looking
for issues. It actually might be easy to capture with wireshark. You
could capture a trace with http version 1.0 and one with 1.1 and look
to see if the connection is restarted by looking for tcp packets with
the syn flag set between your two ip addresses.

Chris

Reply via email to