On Tue, May 16, 2006 at 09:40:52AM +0000, Sendil kumar wrote:

> I have a peculiar problem. When my SSL client (in blocking mode)
> makes a connection with NonSSL server , the client hangs . I need the
> client to terminate the connection with the server if the server is not
> ssl enabled one. I tried a lot of options but all failed. Please give
> any solutions to make the same

Port 9 is the discard port:

    $ openssl s_client -connect localhost:9
    CONNECTED(00000003)
    <hangs>

so of course OpenSSL clients hang when the server does not respond
to the client SSL HELO. To prevent this, the application needs to
impement suitable I/O timeouts, by using select() or similar in the BIO
physical I/O callbacks. Postfix 2.2.10 uses network_biopair_interop()
(src/tls/tls_bio_ops.c) to implement timed bio input/output.

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to