We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ab8cb3 + c6b8485 commit 30794f3Copy full SHA for 30794f3
lib/Base_Thread.cpp
@@ -92,8 +92,13 @@ S Base_Thread::create_new_session_and_client_data_stream(int _fd) {
92
int prevflags = fcntl(_fd, F_GETFL, 0);
93
if (prevflags == -1) {
94
proxy_error("For FD %d fcntl() returned -1 errno %d\n", _fd, errno);
95
- if (shutdown == 0)
+ if (
96
+ (shutdown == 0)
97
+ &&
98
+ (glovars.shutdown == 0) // this is specific for modules that do not refresh `shutdown`
99
+ ) {
100
assert(prevflags != -1);
101
+ }
102
}
103
int nb = fcntl(_fd, F_SETFL, prevflags | O_NONBLOCK);
104
if (nb == -1) {
0 commit comments