biasedbit/http-client

Queued Requests bug

JatinderSingh opened this issue · 8 comments

Hey

The variable queuedRequests in http-client / src / main / java / com / biasedbit / http / client / AbstractHttpClient.java is never decremented in case of failures(cannot connect etc), because of same even if eventQueue is empty the requests may be rejected stating eventQueue is full.

Thanks & Regards
Jatinder

Thanks for the heads up, will look into it ASAP.

One of the possible fixes for same could be your context method failAllRequests returning number of requests it failed and you update your queuedRequests counter from same.

Hi,

I think i've just come across this bug too. Can you tell me if this got looked at and/or a solution suggested?

TIA,

Andy

Andy, I still haven't addressed this issue; it just got higher on my priority list as I've ran into it on the Droplr stack as well. I can't promise an ETA but I'm aiming to have it fixed by the end of the week.

Thanks for the speedy response! And thanks also for a very useful bit of software :)

Hey

I have pushed the fix in my fork.

@JatinderSingh can you please open a pull request? Thanks!

This has been fixed in dev branch. As soon as I finish writing tests for the pipelining connection I'll add a page on the wiki with the upgrade guide from 1.0.0 to 2.0.0.