axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Johnson <johns...@clarkson.edu>
Subject Re: Connection Keep Alive
Date Thu, 03 Feb 2005 17:36:15 GMT
>From my understanding if using HTTP/1.1 you don't need to directly specify
"Keep-Alive".  Under HTTP/1.1 ALL connection are kept alive unless stated
by "Connection: close"

But Carol is right, HTTPSender has the following code to close the
connection

Chris

On Thu, 3 Feb 2005, Ana Carolina Chaves Machado wrote:

> Hi,
>
> I also already verified this problem and to discover that in the HTTPSender
> class has the following line of code:
>
> ...
> if (!http10) {
> //Force close will be now.
> //TODO HTTP/1.1
> httpConnection = HTTPConstants.HEADER_CONNECTION_CLOSE;
> }
>
> ...
>
> I would like to know because does not use Keep-Alive?
>
> Thanks,
> Carol
>
> >>
> >> ----- Original Message ----- From: "Christopher Johnson"
> >> <johnsocs@clarkson.edu>
> >> To: <axis-user@ws.apache.org>
> >> Sent: Thursday, February 03, 2005 12:11 PM
> >> Subject: Connection Keep Alive
> >>
> >>
> >>> I'm trying to increase performance to my web service by making use of
> >>> the
> >>> HTTP/1.1 protocol
> >>>
> >>> I'd like to set Connection to  keep-alive but I'm not sure how to do it,
> >>> everything try is not working for me.
> >>>
> >>> Also by setting connection to keep-alive after calling call.invoke()
> >>> will
> >>> the connection be dropped or will it remain open for the next
> >>> call.invoke()?
> >>>
> >>> Any help would be great thanks.
> >>>
> >>> -Chris
> >>>
> >>
> >
>
>

Mime
View raw message