asynchttpclient / jersey-ahc-client Goto Github PK
View Code? Open in Web Editor NEWAsyncHttpClient transport support for Jersey
AsyncHttpClient transport support for Jersey
Hi,
Method AhcClientHandler.handleCookie() does the following:
private void handleCookie(final RequestBuilder requestBuilder) {
for (final Cookie c : cookies) {
requestBuilder.addCookie(c);
}
}
This ends up calling RequestBuilderBase.addCookie():
public T addCookie(Cookie cookie) {
lazyInitCookies();
request.cookies.add(cookie);
return derived.cast(this);
}
Won't this cause all cookies to be attached to the request, regardless of domain/path/expiration, etc.?
If I run this code:
client.resource("http://www.amazon.com").get(ClientResponse.class);
client.resource("http://10.220.178.235").get(ClientResponse.class);
looking at the wireshark capture, I see the Amazon cookies being sent to 10.220.178.235.
Thoughts?
Thank you in advance.
Unfortunately this is the longest threaddump I have:
at org.sonatype.spice.jersey.client.ahc.AhcClientHandler.handle(AhcClientHandler.java:137) ~[jersey-ahc-client-1.0.5.jar:na]
at com.sun.jersey.api.client.Client.handle(Client.java:648) ~[jersey-client-1.12.jar:1.12]
at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680) ~[jersey-client-1.12.jar:1.12]
at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) ~[jersey-client-1.12.jar:1.12]
at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:558) ~[jersey-client-1.12.jar:1.12]
.... removed ....
Caused by: java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859) ~[na:1.7.0_45]
at java.util.ArrayList$Itr.remove(ArrayList.java:845) ~[na:1.7.0_45]
at org.sonatype.spice.jersey.client.ahc.AhcClientHandler.applyResponseCookies(AhcClientHandler.java:154) ~[jersey-ahc-client-1.0.5.jar:na]
at org.sonatype.spice.jersey.client.ahc.AhcClientHandler.handle(AhcClientHandler.java:125) ~[jersey-ahc-client-1.0.5.jar:na]
Currently all entities are serialized through a BAOS which limits entity size to available memory
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.