Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335329 - Jetty spins when forwarding SSL requests
Summary: Jetty spins when forwarding SSL requests
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-25 10:49 EST by Thomas Becker CLA
Modified: 2011-01-31 20:58 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).