err = (sslerr == SSL_ERROR_SYSCALL) ? errno :0;if(sslerr == SSL_ERROR_WANT_WRITE) { hlog(LOG_INFO,"ssl_write fd %d:SSL_writewants to write again, marking socket for write events", c->fd);/* tell the poller that we have outgoing data */xpoll_outgoing(&self->xp, c->xfd,...
ret = ssl_read( ssl, data, len );if( ret == POLARSSL_ERR_NET_WANT_READ || ret == POLARSSL_ERR_NET_WANT_WRITE )continue;if( ret == POLARSSL_ERR_SSL_PEER_CLOSE_NOTIFY )return-1;if( ret <=0) {printf("failed\n ! ssl_read returned %d\n\n", ret );return-1; }printf("\...