From 5281e4d090b26b5d6dab9691eb4ed0b510349dc2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 8 May 2011 23:19:03 -0700 Subject: [PATCH] unix: Properly initialize delay_error in handle --- oio-unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oio-unix.c b/oio-unix.c index 422e75ac..d014d277 100644 --- a/oio-unix.c +++ b/oio-unix.c @@ -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) {