Boost Users :
Subject: [Boost-users] boost asio ssl read issue
From: Ananth (anantharamu_at_[hidden])
Date: 2016-10-24 12:31:48
I have posted the question here at StackForge with all the details.
did not work when used with ssl. With plain-tcp steam socket, it works fine.
o If we do ssl_socket->lowest_layer().async_read_some(null_buffers(),
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)
If we do ssl_socket->async_read_some(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
I tried with latest ssl and boost code, but that did not help either.
Can some one please help ?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net