dhbaird / easywsclient

A short and sweet WebSocket client for C++
MIT License
741 stars 205 forks source link

from_url() missing close(sockfd) #106

Open VisualGPS opened 7 months ago

VisualGPS commented 7 months ago

from_url()

Upon a valid socket descriptor and a failure to connect, sockfd was never closed. This was descovered in an embedded Linux system where eventually the max number of file descriptors was reached.