Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341386

Summary: Remote close not detected by HttpClient
Product: [RT] Jetty Reporter: Simone Bordet <simone.bordet>
Component: clientAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.3.1   
Target Milestone: 7.3.x   
Hardware: PC   
OS: Linux   
Whiteboard:

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.