<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have posted the question here at StackForge with all the details.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="http://stackoverflow.com/questions/40163626/boost-asio-ssl-not-working-as-expected-when-used-with-null-buffers" target="_blank">http://stackoverflow.com/<wbr>questions/40163626/boost-asio-<wbr>ssl-not-working-as-expected-<wbr>when-used-with-null-buffers</a><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Basically, <a href="http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/overview/core/reactor.html" target="_blank">http://www.boost.<wbr>org/doc/libs/1_40_0/doc/html/<wbr>boost_asio/overview/core/<wbr>reactor.html</a></div><div style="font-size:12.8px">did not work when used with ssl. With plain-tcp steam socket, it works fine.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">o If we do ssl_socket-&gt;lowest_layer().<wbr>async_read_some(null_buffers()<wbr>, read_cb), then we do get all data in read_cb, but read_cb keep getting called endlessly (and read_some then returns 0, with error 11 resource unavailable) (This causes cpu remain over-utilized for ever)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If we do ssl_socket-&gt;async_read_some(<wbr>null_buffers(), read_cb), then it works fine with small amounts of data. When larger data is to be received (~20MB or so), then not all data is received. around 1% of data towards the end is never received by the application. My guess is that data is sitting in openssl library some where</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I tried with latest ssl and boost code, but that did not help either.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Can some one please help ?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Ananth</div></div>

