diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-17 23:21:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-17 23:21:55 +0100 |
commit | 14fa00e3fe1ca61fcc546ee18976ec23fbe62d74 (patch) | |
tree | 82e9daa3d295d77c196ba234afa307aa6d106f97 | |
parent | 1631251205bbc10a8835c9312809def7ab7a45a3 (diff) | |
download | ustream-ssl-14fa00e3fe1ca61fcc546ee18976ec23fbe62d74.tar.gz |
Write pending data after connecting
fixes issues with incoming writes before the ssl negotiation is complete
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | ustream-ssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ustream-ssl.c b/ustream-ssl.c index 4526db0..346a53f 100644 --- a/ustream-ssl.c +++ b/ustream-ssl.c @@ -41,6 +41,7 @@ static void ustream_ssl_check_conn(struct ustream_ssl *us) us->connected = true; if (us->notify_connected) us->notify_connected(us); + ustream_write_pending(&us->stream); } } |