[
https://issues.apache.org/jira/browse/GERONIMO-3686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549522
]
Sangjin Lee commented on GERONIMO-3686:
---------------------------------------
I am also adding a few more convenience methods on HttpMessage on handling HTTP
headers as part of this. They include:
String getHeader(String name);
String[] getHeaders(String name); // returns all of them in case there are
multiple under the same name which can happen (e.g. Set-Cookie)
void removeHeader(String name);
void setHeader(String name, String value); // overwrites existing instead of
adding to them
> AsyncHttpClient does not reuse connection even if connections are persistent
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-3686
> URL: https://issues.apache.org/jira/browse/GERONIMO-3686
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: AsyncHttpClient
> Affects Versions: 1.x
> Reporter: Sangjin Lee
>
> Each time AsyncHttpClient.sendRequest() is called, a new TCP connection is
> opened, even though connections may be kept alive per HTTP spec. If
> connections are kept open, they should be reused for more requests.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.