Hi Matthew,
Thanks for the detailed information you have sent.
I have unable to replicate the SNI issue here on my test rig. However, it is a basic rig running on VM’s and so the requests are not running over an extensive network.
From the symptoms you describe, it seems to me that the problem may be triggered by network congestion causing a delay in getting the full ClientHello header from the client. I.e. The full CleintHello has not reached the e2g server by the time e2g does the call to peek at it.
Can you try replacing the following line in ConnectionHandler:- (around line 3160)
rc = peerconn.readFromSocket(buff2, toread, (MSG_PEEK), 10000);
with:
rc = peerconn.readFromSocket(buff2, toread, (MSG_PEEK|MSG_WAITALL), 10000);
And see if that fixes the issue?
Let me know the result and if it fixes the issue I will post the fix to github.
Regards
Philip
--
E2guardian:
https://groups.google.com/d/forum/e2guardian
Github:
https://github.com/e2guardian/e2guardian
Follow us on twitter:
https://twitter.com/e2guardian
---
You received this message because you are subscribed to the Google Groups "e2guardian" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
e2guardian+...@googlegroups.com.
To view this discussion, visit
https://groups.google.com/d/msgid/e2guardian/6837e9f1-b5eb-4227-b21e-d0009c4f6c00n%40googlegroups.com.