Commit 8905522a authored by Sergey Lyubka's avatar Sergey Lyubka

Setting last_io_time in ns_add_sock()

parent eea1680c
...@@ -877,6 +877,7 @@ struct ns_connection *ns_add_sock(struct ns_server *s, sock_t sock, void *p) { ...@@ -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));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment