Closed GoogleCodeExporter closed 9 years ago
This is happening randomly, depepnding on the content being served by the
webserver. If I just load only index.php and close app it hangs. If I navigate
to some other script and close app, then it doesn't hang. In some other
scenario with two some other scripts being run, it hangs again.
Original comment by czarek.t...@gmail.com
on 22 Jan 2014 at 11:27
[deleted comment]
It seems that the IE webbrowser control does not free IO channel resources
properly, or does it delayed. There is this sleep call in mongoose when
stopping webserver:
ctx->stop_flag = 1;
// Wait until mg_fini() stops
while (ctx->stop_flag != 2) {
(void) mg_sleep(10);
}
free_context(ctx);
Let's investigate if there is a way to stop mongoose immediately without the
calls to mg_sleep().
Original comment by czarek.t...@gmail.com
on 22 Jan 2014 at 11:37
It seems that when application quits it shouldn't matter if mongoose resources
are released, thus we could fix the problem and quit app immediately without
the call to mg_stop(). See this post by Sergey Lyubka:
https://groups.google.com/d/msg/mongoose-users/qLNrY6asGms/zGC-rIHMO5oJ
We could introduce a new parameter to the mg_stop(bool quit_immediately=false)
function.
Original comment by czarek.t...@gmail.com
on 22 Jan 2014 at 11:46
Fixed in revision 1f8c53d45df4.
Original comment by czarek.t...@gmail.com
on 22 Jan 2014 at 12:13
Original issue reported on code.google.com by
czarek.t...@gmail.com
on 22 Jan 2014 at 11:21