Lab3 Part 5 Fix Connection Reset Error on TLS Client

Lab3 Part 5 Fix Connection Reset Error on TLS Client

by Marc Fabien Egli -
Number of replies: 0

Hello,

For those of you that encounter the following error : Connection Reset by Peer when testing Part 5 locally.

You should remove the /etc/hosts entry you added in Part 3. More precisely you should comment the following line : 

::1 localhost loopback 

and add the line: 

::1 ip6-localhost ip6-loopback

Not replacing this line will make the compiled TLS client resolve two times the localhost address and thus it will try to connect twice which will first connect to your server implementation but then reset the connection (with the second connect).

Best,

Marc