unix: Properly initialize delay_error in handle

This commit is contained in:
Ryan Dahl 2011-05-08 23:19:03 -07:00
parent 9e9bae5eb6
commit 5281e4d090

View File

@ -161,7 +161,7 @@ int oio_tcp_init(oio_handle_t* handle, oio_close_cb close_cb,
handle->connect_req = NULL;
handle->accepted_fd = -1;
handle->fd = -1;
handle->delayed_error = 0;
ngx_queue_init(&handle->write_queue);
handle->write_queue_size = 0;
@ -213,6 +213,7 @@ int oio_bind(oio_handle_t* handle, struct sockaddr* addr) {
}
r = bind(handle->fd, addr, addrsize);
handle->delayed_error = 0;
if (r) {
switch (errno) {