mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Setting last_io_time in ns_add_sock()
This commit is contained in:
1 parent
eea1680cf9
commit
8905522a94
1 file changed
+1
@@ -877,6 +877,7 @@ struct ns_connection *ns_add_sock(struct ns_server *s, sock_t sock, void *p) {
|
|||||||
conn->sock = sock;
|
conn->sock = sock;
|
||||||
conn->connection_data = p;
|
conn->connection_data = p;
|
||||||
conn->server = s;
|
conn->server = s;
|
||||||
|
conn->last_io_time = time(NULL);
|
||||||
add_connection(s, conn);
|
add_connection(s, conn);
|
||||||
DBG(("%p %d", conn, sock));
|
DBG(("%p %d", conn, sock));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user