#endif
ret = fd_write(sock->sock, buf, len);
if (ret == 0)
ret = -1;
if (ret < 0)
sock->state = CONN_DISCONNECTED;
return ret;