Issue:
------
on handshake failure, session triggers sever notify_close
handler as well, while having only one session for which
handshake failed no issue was observed, however if there
are existing established/closed sessions present in the
ref map it results in assertion.
Since it is expected that session will be added to ref_map
only when the handshake is complete
Fix:
----
since SSL handshake is done in Server context, close
session should be called without server notify flag.
Added test-case for the same
Closes-Bug: 1493229
Change-Id: I07a6ce56dd206a753b14515a03e01fd2a933d2b2
(cherry picked from commit 6c1a837304c3eb48ceacca8733d4f4dcdf31c612)
Reviewed: https:/ /review. opencontrail. org/13657 github. org/Juniper/ contrail- controller/ commit/ 1585814163f59c6 68ec7bf954dd408 b24f79b350
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 1585814163f59c6 68ec7bf954dd408 b24f79b350
Author: Prabhjot Singh Sethi <email address hidden>
Date: Tue Sep 8 15:16:52 2015 +0530
Fix crash for handshake failure in ssl infra
Issue:
------
on handshake failure, session triggers sever notify_close
handler as well, while having only one session for which
handshake failed no issue was observed, however if there
are existing established/closed sessions present in the
ref map it results in assertion.
Since it is expected that session will be added to ref_map
only when the handshake is complete
Fix:
----
since SSL handshake is done in Server context, close
session should be called without server notify flag.
Added test-case for the same
Closes-Bug: 1493229 753b14515a03e01 fd2a933d2b2 8ceacca8733d4f4 dcdf31c612)
Change-Id: I07a6ce56dd206a
(cherry picked from commit 6c1a837304c3eb4