Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
socket: Return -ETIMEDOUT when select() in socket_read_fd() reached t…
…he timeout
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,6 +412,10 @@ int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout) | |
strerror(errno)); | ||
return -1; | ||
} | ||
} else if (sret == 0) { | ||
if (verbose >= 2) | ||
fprintf(stderr, "%s: timeout\n", __func__); | ||
return -ETIMEDOUT; | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nikias
Author
Member
|
||
} while (eagain); | ||
|
||
|
we're getting reports that this is breaking connections in Flutter:
flutter/flutter#35102
Any chance this can be reverted?