Hi Radu, yes, I have called run() on the ioservice.
And I still can't figure out why, do I need to keep sending things to client?

Thanks for reply.
------------------
jenenliu
 


------------------ Original ------------------
From:  "Radu Andrei Nedelcu";<radu@disruptive.engineering>;
Date:  Fri, Aug 19, 2016 11:35 PM
To:  "boost-users@lists.boost.org"<boost-users@lists.boost.org>;
Subject:  Re: [Boost-users] Boost Asio SSL can't receive without sending

Are you calling run( ) on the ioservice ( boost::asio::io_service ) ?

 

Radu

 

From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of ???
Sent: 19 August 2016 07:57
To: boost-users <boost-users@lists.boost.org>
Subject: [Boost-users] Boost Asio SSL can't receive without sending

 

Hi, I am using Boost Asio to developed a server, with SSL support.

I add async_read_some() function in handshake handler and send handler.

Which receiving is OK if I send something to clients, but I can't keep receiving

after I stop sending things to client. So I am wondering how can I keep receiving,

I know there must be a way to make it, I am new to Asio, can someone help, thanks

in advance.

 

------------------

I won't go