mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 23:58:53 -05:00
Zeroed wev
This commit is contained in:
parent
71a3a70c02
commit
117a39d35b
@ -95,6 +95,7 @@ int ListenHandler::accept_connection(evutil_socket_t fd,
|
|||||||
size_t idx = worker_round_robin_cnt_ % num_worker_;
|
size_t idx = worker_round_robin_cnt_ % num_worker_;
|
||||||
++worker_round_robin_cnt_;
|
++worker_round_robin_cnt_;
|
||||||
WorkerEvent wev;
|
WorkerEvent wev;
|
||||||
|
memset(&wev, 0, sizeof(wev));
|
||||||
wev.client_fd = fd;
|
wev.client_fd = fd;
|
||||||
memcpy(&wev.client_addr, addr, addrlen);
|
memcpy(&wev.client_addr, addr, addrlen);
|
||||||
wev.client_addrlen = addrlen;
|
wev.client_addrlen = addrlen;
|
||||||
|
Loading…
Reference in New Issue
Block a user