Hello,

I also created the same kind of Server that handle the different
clients but the only difference that i have different threads for
reading and writing as my application needed...

May be u need to check SSL structure for both read and write for
different connections.
There is no problem in making same context for all clients only u need
to care about the information of one client should not be lost when u
r handshaking with another client as it will create problems in read
and write.

So i need some more details.. like single thread means everything u r
doing in sequence.. is that??

means first socket connection.. then SSL new... then SSL_accept and
finally read then write..

I mean please explain the structure with little more details that u r
using for multi client support...

hope will find some clue..

On Thu, Sep 25, 2008 at 12:28 AM, qunying <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I encountered a strange error. I have a single thread server running in
> linux which use epoll for multiple nonblocking connections.  There is only
> one server context, each SSL is created with SSL_new() from the same
> context.
>
> 1. When I have one SSL connection setup, and have traffic going through it
> without problem.
>
> 2. A second connection is comming in and calling SSL_accept(), sometimes it
> will cause the first SSL's SSL_read return SSL_ERROR_SSL. with the error
> information from ERR_error_string(): 0x42445e38 Resource temporarily
> unavailable. error:00000000:lib(0):func(0):reason(0).
>
> It happened when SSL_accept()returns -1, and SSL_get_error() return
> SSL_ERROR_WANT_READ. At this stage, the SSL is in "SSLv2/v3 read client
> hello A" when I print with SSL_state_string_long().
>
> Does anybody encounter similar problem?
>
> I am running OpenSSL-0.9.7m.  The two connections are from different PCs.
>
> Thanks
>
> Qunying
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>



-- 
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to