You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I never can say thank you enough for this lib! It is simply amazing how well put together it is! The broadcast_server is all one needs to create a high performance server in minutes. When I tried deviating from it, problems were endless. When I returned to it, my development really exploded, and now I've even set up a few friends with servers. I've tried looking at every other's implementation across all languages, and they all make websocket servers almost impossible to produce. Thank you so much!
I think I might be misusing the tls client somehow. I've registered a fail handler, and it succeeds the first time; however, if I try to make subsequent connections upon the same address that previously failed, the fail handler never seems to be called again.
I've set my code to attempt connections every 3 seconds.
client::connection_ptr con = m_client.get_connection( "wss://" + node_ip, ec );
If ec == false, I proceed with connect().
On the first failed connection, the console output is
[2014-07-12 17:08:07] [info] asio async_connect error: system:111 (Connection refused)
[2014-07-12 17:08:07] [error] handle_connect error: Underlying Transport Error
[2014-07-12 17:08:07] [info] asio async_shutdown error: asio.ssl:336462100 (uninitialized)
remote_endpoint: Transport endpoint is not connected
The fail handler fires, but upon subsequent attempts to connect to the same address, the console output is
[2014-07-12 17:08:11] [application] Close Error: invalid state
[2014-07-12 17:08:12] [application] Close Error: invalid state
[2014-07-12 17:08:13] [application] Close Error: invalid state
[2014-07-12 17:08:13] [application] Close Error: invalid state
and the fail handler doesn't fire.
Also, if no reattempt has been made then everything works as expected, but if a reattempt has been made, and a client tries to connect to a server that has tried as client to reattempt then the client that tries to connect to the reattempting server will output upon connecting:
[fatal] handle_transport_init received error: TLS handshake timed out
[disconnect] Failed: TLS handshake timed out
The client and server are both using boost::asio::io_service ios; for init_asio(&ios);.
I could not reproduce this problem with non-tls.
Please show me what I'm doing wrong.
Again, I cannot thank you enough for this amazing high performance library!
The text was updated successfully, but these errors were encountered:
zaphoyd,
I never can say thank you enough for this lib! It is simply amazing how well put together it is! The broadcast_server is all one needs to create a high performance server in minutes. When I tried deviating from it, problems were endless. When I returned to it, my development really exploded, and now I've even set up a few friends with servers. I've tried looking at every other's implementation across all languages, and they all make websocket servers almost impossible to produce. Thank you so much!
I think I might be misusing the tls client somehow. I've registered a fail handler, and it succeeds the first time; however, if I try to make subsequent connections upon the same address that previously failed, the fail handler never seems to be called again.
I've set my code to attempt connections every 3 seconds.
I'm using this context_ptr
I setup the connection with
client::connection_ptr con = m_client.get_connection( "wss://" + node_ip, ec );
If
ec == false
, I proceed withconnect()
.On the first failed connection, the console output is
The fail handler fires, but upon subsequent attempts to connect to the same address, the console output is
and the fail handler doesn't fire.
Also, if no reattempt has been made then everything works as expected, but if a reattempt has been made, and a client tries to connect to a server that has tried as client to reattempt then the client that tries to connect to the reattempting server will output upon connecting:
The client and server are both using
boost::asio::io_service ios;
forinit_asio(&ios);
.I could not reproduce this problem with non-tls.
Please show me what I'm doing wrong.
Again, I cannot thank you enough for this amazing high performance library!
The text was updated successfully, but these errors were encountered: