[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] output buffer length check of SSL connection
- To: <libevent-users@xxxxxxxxxxxxx>
- Subject: [Libevent-users] output buffer length check of SSL connection
- From: "Hiroaki Hata" <hata@xxxxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2014 22:50:34 +0900
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 27 Jun 2014 10:11:52 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qc5.so-net.ne.jp; s=sn2014; t=1403877040; bh=JumuQ8FDvYaQ4jWfuSqZhfEpIMJF4i+27MyIeBoRIdQ=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=rcbTQof47ZxNhhNWnk7Hais62cXzYJImmT1+2/OVD7Ew6xJM7HEJyWgEjox9iX5zL wt6eRepxdYkCVy/++K+HXxGO4Zf4csUrnGuZH2auHZozlmx+/xwzWhL1r9A5K+fyw/ c5SGDygKKkOOwDElG6SF1pr2RNwu4QjyuvrDPOKJlcI9RhGHnZBcL6TcaEZ5/xHEoW ikL8Puxyy6nZuc7HMtBqHkEsNf8CVwjRy/Lx86Tq3+q9ezA5ufkSH77sftwm0yyJfZ ZwbGShu+iwV1giFrL2/X5Fjfw0i+QKWQAruh3Ce/NXiPCY0RW1z9t75eRwX0SUdbHG lwxm56z24Xnzg==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- Thread-index: Ac+SDrciNaeiTioLRy6r7fcBVOXXxA==
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 majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.