This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes HttpClient detects a stale connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "HttpClient detects a stale connection " Watch "HttpClient detects a stale connection " New topic

HttpClient detects a stale connection

Giora Shcherbakov

Joined: Jun 29, 2011
Posts: 3
Hi All,

In this program that I am writing I use a http client for sending secured requests to a remote server.
I have no idea what implementation is on this server but I know from its logs that it recieves my requests.

Problem is that once in a while I see in the httpclient log file that the socket is stale. On the server logs I see a request rejected (authentication failed as no user/password sent) but immediately sent again with the needed credentials and the request is processed succesfully. (In my code I do NOT send the request twice if an error occurs so I believe this is the mechanism of httpclient)

My question is :

Who is the one making the connection stale ? Is it the client or the server and how can I control it ?

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: HttpClient detects a stale connection
It's not a secret anymore!