mutgos / mutgos_server

MUTGOS, a modern MUD MUCK MUSH MOO MU* text game engine
MIT License
4 stars 2 forks source link

Bad SSL handshake should close client connection #39

Open hyena opened 5 years ago

hyena commented 5 years ago

This is one for me. Testing by connecting to Fuzzball without ssl on the ssl port and typing garbage will close the socket on the user's side. Presently mutgos does not. This issue is to fix this to be sure my code is not leaking sockets.

zelerin commented 5 years ago

That is a little tricky with boost, since they use smart pointers and such. You'll likely need to use valgrind to confirm it's working as expected. Sometimes I've seen the last socket hang around even after disconnect... so you may need to connect multiple times and confirm it's releasing them. I don't expect it to be too hard to fix, though, and is likely just a couple of lines.