Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341386 - Remote close not detected by HttpClient
Summary: Remote close not detected by HttpClient
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: client (show other bugs)
Version: 7.3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.3.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 11:47 EDT by Simone Bordet CLA
Modified: 2011-03-30 11:51 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Bordet CLA 2011-03-30 11:47:15 EDT
When the HttpClient is idle (i.e. no requests in progress) and the server closes the connection, then the HttpClient does not detect the connection close.

This is due to the rework done for the half close issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=340265.
Comment 1 Simone Bordet CLA 2011-03-30 11:51:28 EDT
Fixed.
Added a check for the remote close (parser.fill() returns -1), and it is the case, then the connection is closed.