* fixed previous patch for write_socket_nonblocking