mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-23 11:44:53 +00:00
reduced select() timeout from 1 second to 0.2 second to make mongoose snappier
This commit is contained in:
1 parent
db1c0806ef
commit
e97762879d
1 file changed
+2
-2
+2
-2
@@ -3912,8 +3912,8 @@ static void master_thread(struct mg_context *ctx) {
|
||||
add_to_set(sp->sock, &read_set, &max_fd);
|
||||
}
|
||||
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 200 * 1000;
|
||||
|
||||
if (select(max_fd + 1, &read_set, NULL, NULL, &tv) < 0) {
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in new issue
Block a user