* (This is usually the case when the client forces an SSL
* renegotiation which is handled implicitly by OpenSSL.)
*/
- inctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ if (inctx->c->cs) {
+ inctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ }
inctx->rc = APR_EAGAIN;
if (*len > 0) {
* (This is usually the case when the client forces an SSL
* renegotiation which is handled implicitly by OpenSSL.)
*/
- inctx->c->cs->sense = CONN_SENSE_WANT_WRITE;
+ if (inctx->c->cs) {
+ inctx->c->cs->sense = CONN_SENSE_WANT_WRITE;
+ }
inctx->rc = APR_EAGAIN;
if (*len > 0) {
* (This is usually the case when the client forces an SSL
* renegotiation which is handled implicitly by OpenSSL.)
*/
- outctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ if (outctx->c->cs) {
+ outctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ }
outctx->rc = APR_EAGAIN;
ap_log_cerror(APLOG_MARK, APLOG_TRACE6, 0, outctx->c,
"Want read during nonblocking write");
*/
ap_log_cerror(APLOG_MARK, APLOG_TRACE6, 0, outctx->c,
"Want read during nonblocking accept");
- outctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ if (outctx->c->cs) {
+ outctx->c->cs->sense = CONN_SENSE_WANT_READ;
+ }
outctx->rc = APR_EAGAIN;
return APR_EAGAIN;
}
*/
ap_log_cerror(APLOG_MARK, APLOG_TRACE6, 0, outctx->c,
"Want write during nonblocking accept");
- outctx->c->cs->sense = CONN_SENSE_WANT_WRITE;
+ if (outctx->c->cs) {
+ outctx->c->cs->sense = CONN_SENSE_WANT_WRITE;
+ }
outctx->rc = APR_EAGAIN;
return APR_EAGAIN;
}
#endif
BIO_set_data(filter_ctx->pbioWrite, (void *)bio_filter_out_ctx_new(filter_ctx, c));
- /* write is non blocking for the benefit of async mpm */
- if (c->cs) {
- BIO_set_nbio(filter_ctx->pbioWrite, 1);
- ap_log_cerror(APLOG_MARK, APLOG_TRACE7, 0, c,
- "Enabling non-blocking writes");
- }
-
ssl_io_input_add_filter(filter_ctx, c, r, ssl);
SSL_set_bio(ssl, filter_ctx->pbioRead, filter_ctx->pbioWrite);