Actually yes.
Sometimes I truly think in crooked circles. My original impulse was
absolute, but I went around that to avoid the extra IF statement,
though it's there no matter what. The ABS would work the best and
perfectly given the MIN and MAX aren't both even or both odd. But even
if, the wrap
remove it, but this time I try with an isStale() check. The isStale()
check doesn't really help in this case, but I would like to be able to have
some check that can see if the connection is open. I figured I could write
my own isStale() check that sends a request to the server, but if NIO is
possible
remove it from the pool
and try again
If second try fails as well, it gets removed and I try again but with an
isStale() check first.
My problem is that these keep failing until I filtered through all
connections in the pool. In which case I start making new ones.
How does HttpClient handle
the connection.
Basically what I have is this:
I try once, if receiving a NoResponse exception, I remove it from the pool
and try again
If second try fails as well, it gets removed and I try again but with an
isStale() check first.
My problem is that these keep failing until I filtered through all
again
If second try fails as well, it gets removed and I try again but with an
isStale() check first.
My problem is that these keep failing until I filtered through all
connections in the pool. In which case I start making new ones.
How does HttpClient handle this? Or what can I do to improve