From b1c0287c84487ce705c801d2182d7d5f661be926 Mon Sep 17 00:00:00 2001 From: Jim Morrison Date: Mon, 4 Jun 2012 13:01:36 -0700 Subject: [PATCH] Enable writing partial buffers. --- examples/spdylay_ssl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/spdylay_ssl.cc b/examples/spdylay_ssl.cc index 3895823..f0eea35 100644 --- a/examples/spdylay_ssl.cc +++ b/examples/spdylay_ssl.cc @@ -592,6 +592,7 @@ void setup_ssl_ctx(SSL_CTX *ssl_ctx, void *next_proto_select_cb_arg) SSL_CTX_set_options(ssl_ctx, SSL_OP_ALL|SSL_OP_NO_SSLv2); SSL_CTX_set_mode(ssl_ctx, SSL_MODE_AUTO_RETRY); SSL_CTX_set_mode(ssl_ctx, SSL_MODE_RELEASE_BUFFERS); + SSL_CTX_set_mode(ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE); SSL_CTX_set_next_proto_select_cb(ssl_ctx, select_next_proto_cb, next_proto_select_cb_arg); }