I do some simple modification on your codes,it's surely
not the best solution the more it's not debugged,but I think
maybe it can give you some suggestions.One thing,if you do
want it robust,you need reuse the buffer with a for loop if
the data is large than 10*1024,right?
The more,if
hi,all
I use the debug callback fucntion just like s_server does at the
server side,why I always get the following error at the beginning
of the session (when call SSL_accept):
SSL_accept:before/accept initialization
read from 00339F30 [00373828] (11 bytes => -1 (0x))
SSL_accept:error
Title: SSL_read blocks the control - urgent
I think it's not the problem of OpenSSL.
It's seems that your HTTP request has
something wrong with it,should like:
GET / HTTP/1.0
Accept: */*Referer: http://www.server.com/Accept-Language:
zh-cn,zh;q=0.5Accept-Encoding: gzip, deflateUser-A
I am not WinSock programmer, I just give you my suppose opinion,
and may be it's wrong, just an advice:
for
WSAEventSelect( m_iSocketID, m_hSocketEvent, FD_READ|FD_CLOSE);
you need add an write enent select(FD_WRITE I guess),for the write enent,
it needs only do the same thing as read event.The r