nadjieb / cpp-mjpeg-streamer

C++ MJPEG over HTTP Library
MIT License
135 stars 39 forks source link

Poll the client socket if it still valid for writing #21

Closed mecraggs closed 2 years ago

mecraggs commented 2 years ago

This checks if the client socket is still valid for writing, avoiding a crash. Reproducible when streaming at a high rate ( 25fps ) and pressing refresh in the browser or closing the tab. Should also fix the first crash in #18.

kamalnadjieb commented 2 years ago

Hello @mecraggs thank you for the PR. Please fix the PR by following the contribution guideline below. Thank you.

https://github.com/nadjieb/cpp-mjpeg-streamer/blob/master/CONTRIBUTING.md