Discussion:
output buffer length check of SSL connection
(too old to reply)
Hiroaki Hata
2014-06-27 13:50:34 UTC
Permalink
Raw Message
Hi

le-proxy.c sample is very helpful for me. Thanks Nick.
https://github.com/nmathewson/Libevent/blob/master/sample/le-proxy.c

I'm tried to use it for SSL connections and noticed some transmitted
packets dropped.
In congestion control, we have to check the length of output buffer,
but when the SSL is used, the buffer of the underlay bufferevent b_out
should be checked rather than the filter event of SSL.
In the sample code, the underlay bufferevent is overwritten with b_ssl.
I cached b_out and checked the buffer length of it and set write callback
to it, then the congestion works well.
This is a just comment but I appreciate you for your detailed online manuals
and comprehensive examples.

Hiroaki Hata

***********************************************************************
To unsubscribe, send an e-mail to ***@freehaven.net with
unsubscribe libevent-users in the body.
Hiroaki Hata
2014-06-28 01:09:38 UTC
Permalink
Raw Message
Hi

My hand copied code was wrong.
Even if I passed a bev_ssl to bufferevent_set_cb,
the parameter bev given from callback is not the bev_ssl
but the underlay bev. I used my chached bev which is fo ssl.
It was my mistake.
I'm sorry, Nick.

Hata
-----Original Message-----
Sent: Friday, June 27, 2014 10:51 PM
Subject: [Libevent-users] output buffer length check of SSL connection
Hi
le-proxy.c sample is very helpful for me. Thanks Nick.
https://github.com/nmathewson/Libevent/blob/master/sample/le-proxy.c
I'm tried to use it for SSL connections and noticed some transmitted
packets
dropped.
In congestion control, we have to check the length of output buffer, but
when the SSL is used, the buffer of the underlay bufferevent b_out should
be checked rather than the filter event of SSL.
In the sample code, the underlay bufferevent is overwritten with b_ssl.
I cached b_out and checked the buffer length of it and set write callback
to it, then the congestion works well.
This is a just comment but I appreciate you for your detailed online manuals
and comprehensive examples.
Hiroaki Hata
**********************************************************************
*
unsubscribe libevent-users in the body.
***********************************************************************
To unsubscribe, send an e-mail to ***@freehaven.net with
unsubscribe libevent-users in the body.

Loading...