Don't wait too long when we have data to send
This commit is contained in:
@@ -386,7 +386,7 @@ int main (int argc, char **argv)
|
|||||||
.tv_usec = 100000,
|
.tv_usec = 100000,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (mud_can_push(mud))
|
if (mud_can_push(mud) || send_size)
|
||||||
timeout.tv_usec = 1000;
|
timeout.tv_usec = 1000;
|
||||||
|
|
||||||
if _0_(select(mud_fd+1, &rfds, NULL, NULL, &timeout)==-1) {
|
if _0_(select(mud_fd+1, &rfds, NULL, NULL, &timeout)==-1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user