Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335836 - Race when updating SelectChannelEndPoint._dispatched
Summary: Race when updating SelectChannelEndPoint._dispatched
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.2.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.2.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 07:26 EST by Simone Bordet CLA
Modified: 2011-01-31 07:29 EST (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-01-31 07:26:33 EST
In SelectChannelEndPoint.dispatch():

_dispatched = _manager.dispatch(_handler);

It could be that the endpoint handler is run before the assignment to _dispatched is done, so it will look like the endpoint is in a wrong state.
Comment 1 Simone Bordet CLA 2011-01-31 07:29:26 EST
Fixed by guarding correctly the assigned to _dispatched.