Klaus Demo bjoern / d2cfd7b
add GIL locking in ev_io_on_request (#125) Szabi authored 2 years ago Jonas Haag committed 2 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
127127 return;
128128 }
129129
130 GIL_LOCK(0);
131
130132 Request* request = Request_new(
131133 ((ThreadInfo*)ev_userdata(mainloop))->server_info,
132134 client_fd,
133135 inet_ntoa(sockaddr.sin_addr)
134136 );
137
138 GIL_UNLOCK(0);
135139
136140 DBG_REQ(request, "Accepted client %s:%d on fd %d",
137141 inet_ntoa(sockaddr.sin_addr), ntohs(sockaddr.sin_port), client_fd);