Bugzilla – Bug 747
Listening TCP socket closes on RST
Last modified: 2010-01-31 15:18:28 UTC
Created attachment 667 [details] patch A TCP socket in state 'Listening' changes to state 'Closed' when a (malicious) RST packet is received. The socket should stay in state 'Listening'. Please review the patch very closely. All unit-tests pass, but i'm not sure whether they cover all situations.
(In reply to comment #0) > Created an attachment (id=667) [details] > patch > > A TCP socket in state 'Listening' changes to state 'Closed' when a (malicious) > RST packet is received. The socket should stay in state 'Listening'. > > Please review the patch very closely. All unit-tests pass, but i'm not sure > whether they cover all situations. I spent some time looking over this, and it looks good. Essentially the patch ensures that the state machine is used upon RST events (rather than trying to do it within the methods). +1 from me.
(In reply to comment #1) > (In reply to comment #0) > > Created an attachment (id=667) [details] [details] > > patch > > > > A TCP socket in state 'Listening' changes to state 'Closed' when a (malicious) > > RST packet is received. The socket should stay in state 'Listening'. > > > > Please review the patch very closely. All unit-tests pass, but i'm not sure > > whether they cover all situations. > > I spent some time looking over this, and it looks good. Essentially the patch > ensures that the state machine is used upon RST events (rather than trying to > do it within the methods). +1 from me. changeset 894221b51957