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

Bug 360051

Summary: SocketConnectionTest.testServerClosedConnection is excluded
Product: [RT] Jetty Reporter: Greg Wilkins <gregw>
Component: serverAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: jetty-inbox
Version: 7.5.1   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Greg Wilkins CLA 2011-10-05 18:08:17 EDT
The SocketConnectionTest.testServerClosedConnection is currently excluded from the build because it fails with 100% CPU.

If the test is slowed down with sleeps/debug, it completes successfully.

When it fails, it appears that the first request is completed OK and the second request send call completes, but the call to serverSocket.accept() never gets a new connection and something consumes 100% CPU.
Comment 1 Simone Bordet CLA 2011-10-06 10:16:29 EDT
Fixed.
The problem was that the parser was reading -1 but the connection never closed, and this lead to CPU spinning.
Test had to be modified since it cannot work like it does for the SelectConnector.