users@jersey.java.net

[Jersey] Re: Is Jersey/Jersey client duplicating requests -- yup, it does

From: peterjca <p.cameron_at_monitormedia.co.uk>
Date: Mon, 11 Jul 2011 07:49:33 -0700 (PDT)

I'm responding to my own post here because I found the cause of the extra
requests.

I plugged in the ApacheHttpClient to see if that would make any difference.
Whilst googling about ApacheHttpClient I came across various issues people
were having with it. One in particular was due to code throwing away a
response i.e. not reading a response, and causing hanging.

Indeed, I was not reading the response of the RatingResource because I
wasn't particularly interested in it for my tests, and experienced hanging.
Once I read it the problem went away.

I'll now redo my tests with the standard Jersey client.

So isn't this a bug in Jersey? If you don't read all responses then Jersey
goes funny and you end up getting extra requests for some reason.


--
View this message in context: http://jersey.576304.n2.nabble.com/Is-Jersey-Jersey-client-duplicating-requests-tp6570645p6571176.html
Sent from the Jersey mailing list archive at Nabble.com.