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

Bug 335329

Summary: Jetty spins when forwarding SSL requests
Product: [RT] Jetty Reporter: Thomas Becker <tbecker>
Component: serverAssignee: Simone Bordet <simone.bordet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gregw, jetty-inbox, simone.bordet
Version: unspecified   
Target Milestone: 7.2.x   
Hardware: PC   
OS: All   
Whiteboard:

Description Thomas Becker CLA 2011-01-25 10:49:26 EST
Build Identifier: 

Attached you'll find a jetty proxy provided by a client. This proxy's setup is a bit strange, but it's good to reproduce the issue.

When doing a couple of page requests to different https sites jetty starts spinning and consuming cpu. Sometimes it recovers, sometimes the cpu usage stays high for a while.

The DEBUG log is full of these:

(don't have the logs available anymore, will reproduce the issue and add the logs). It was something like SSL_NULL_WITH_NULL messages. 

Reproducible: Sometimes
Comment 1 Greg Wilkins CLA 2011-01-31 20:58:36 EST
r2719

Fix committed.  Override setWritable to stop the endpoint being scheduled for write notification on the basis that no output was written (if we are handshaking and there is no output to flush).