mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Handle #1559 - set no flags in send() call
This commit is contained in:
1 parent
d5993ba27e
commit
b3a4c12d67
1 file changed
+1
-1
@@ -37,7 +37,7 @@ static void start_thread(void (*f)(void *), void *p) {
|
||||
static void thread_function(void *param) {
|
||||
int sock = (int) (size_t) param; // Paired socket. We own it
|
||||
sleep(2); // Simulate long execution
|
||||
send(sock, "hi", 2, 2); // Wakeup event manager
|
||||
send(sock, "hi", 2, 0); // Wakeup event manager
|
||||
close(sock); // Close the connection
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user