Using keep-alive should improve performance, not degrade it. Adding Connection: close would significantly degrade performance, especially for HTTPS connections.
In general, it would be great if all of the HTTP client transports exposed the ability to customize headers, so that an app could override defaults or add custom headers without modifying the client itself. Seth On Tue, Apr 26, 2011 at 10:43 AM, Usman Ismail <[email protected]> wrote: > Hi, > > I had a look at the Objective C and C++ http client code and noticed > that it does not supply the Connection: close header. This means that > webservers keep the connection alive assuming its a persistent > connection. This slows down client side request processing > significantly and also wastes server resources. I created issues 1153 > and 1154 for c++ and objective c respectively it would be great to > have then in the next release. > > I also noticed a similar issue in java although I am not sure whether > the the change is needed in java or whether underlying layers take > care of it. > > --regards > Usman Ismail >
