Signed-off-by: Andy Green <andy.green@linaro.org>
int m;
int opt = 1;
ssize_t len;
+ BIO *bio;
switch (wsi->mode) {
SSL_set_fd(new_wsi->ssl, accept_fd);
+ bio = SSL_get_rbio(new_wsi->ssl);
+ if (bio)
+ BIO_set_nbio(bio, 1); /* nonblocking */
+ else
+ lwsl_notice("NULL rbio\n");
+ bio = SSL_get_wbio(new_wsi->ssl);
+ if (bio)
+ BIO_set_nbio(bio, 1); /* nonblocking */
+ else
+ lwsl_notice("NULL rbio\n");
+
/*
* we are not accepted yet, but we need to enter ourselves
* as a live connection. That way we can retry when more