Closed washcycle closed 5 years ago
Hi, If you want to do that, without thread, you just can stop the server in the client connection callback event, no ? :)
Is there any excessive overhead if I do that? Otherwise that sounds like an excellent idea, didn't even think of it. Thanks.
On Sun, Feb 3, 2019, 11:25 J-Christophe Bos notifications@github.com wrote:
Hi, If you want to do that, without thread, you just can stop the server in the client connection callback event, no ? :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/50#issuecomment-460070719, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBp_g0z8Nj0J5z4sFVTMBg-6ah5umomks5vJxtrgaJpZM4agJ-B .
No, because in any case, this is in the processing of the reception of the client socket that allows to close the server properly. The loop then comes out immediately (err #113) :) No problem.
Hello,
I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.
Thank you for your support and feedback. ☺️
Jean-Christophe Bos
Le lun. 4 févr. 2019 à 15:21, Matt notifications@github.com a écrit :
Is there any excessive overhead if I do that? Otherwise that sounds like an excellent idea, didn't even think of it. Thanks.
On Sun, Feb 3, 2019, 11:25 J-Christophe Bos notifications@github.com wrote:
Hi, If you want to do that, without thread, you just can stop the server in the client connection callback event, no ? :)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/50#issuecomment-460070719, or mute the thread < https://github.com/notifications/unsubscribe-auth/ABBp_g0z8Nj0J5z4sFVTMBg-6ah5umomks5vJxtrgaJpZM4agJ-B
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/50#issuecomment-460266227, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLOFRwM78aMjfz91azlBS6lEsAwF0ks5vKEH_gaJpZM4agJ-B .
--
Sincèrement,
I was thinking about creating a pull request to take the _serverProcess function and the ability to run the process outside in a while loop at the parent thread process.
Proposed Addition
Example Usage
Any thoughts, perhaps I didn't consider an already present micropythonic way to do this.