Topic: Weird "error state on socket" with simple code.
Hi I'm compiling a simple server - client with CyaSSL embedded SSL.
My client and server compile well and the client can connect to web SSL server pages without any problem.
However, when it bind to my server i got a "error state on socket", see below.
- I wait 3 seconds before the tcp socket bind or connect before going with the SSL accept or SSL connect layer.
- My tcp socket are quite very standard without any fency parameters.
Do someone have a clue about what this mean?
env:
- Library and program compiled on a 32bits Linux Mint
- Using code::blocks 10.05
Server side output:
[...]
CyaSSL Leaving SSL_new, return 0
CyaSSL Entering SSL_set_fd
CyaSSL Leaving SSL_set_fd, return 1
CyaSSL Entering SSL_accept()
growing input buffer
Embed Receive error
General error
CyaSSL error occured, error = -208
CyaSSL Entering SSL_get_error
CyaSSL Leaving SSL_get_error, return -208
CyaSSL Entering ERR_error_string
Error connecting: [-1] error state on socket
CyaSSL Entering SSL_get_fd
CyaSSL Leaving SSL_get_fd, return -1
CyaSSL Entering SSL_free
CTX ref count not 0 yet, no free
Shrinking input buffer
CyaSSL Entering BIO_free
CyaSSL Leaving SSL_free, return 0
Client side output:
[...]
CyaSSL Leaving SSL_new, return 0
CyaSSL Entering SSL_set_fd
CyaSSL Leaving SSL_set_fd, return 1
CyaSSL Entering SSL_connect()
growing output buffer
Shrinking output buffer
connect state: CLIENT_HELLO_SENT
growing input buffer
Embed receive connection closed
CyaSSL error occured, error = -208
CyaSSL Entering SSL_get_error
CyaSSL Leaving SSL_get_error, return -208
CyaSSL Entering ERR_error_string
SSLsetfd: 1Error connecting: [-1] error state on socket
Abort on error!
thanks. unkode