Actuall, my server is apache 1.3. The KeepAlive is on. By default,
It should be persistent connection without asking for Keep-Alive. 
However, it does not work with either SSL(port 443) or without 
SSL (port 80). I tested this with telnet:

- telnet host 80
        GET / HTTP1.1
  This always closes the connection

- telnet host 80
        GET / HTTP1.1
        Connection: Keep-Alive
  This does not close the connection

- telnet host 443
        GET / HTTP1.1
  This always closes the connection

- telnet host 443
        GET / HTTP1.1
        Connection: Keep-Alive
  This always closes the connection

Is this a bug?  any comments?

Thanks,
Miha    
        


> -----Original Message-----
> From: Arun Venkataraman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 24, 2000 9:57 AM
> To: [EMAIL PROTECTED]
> Cc: Miha Wang
> Subject: Re: HELP NEEDED: Persist connection
> 
> 
> [Moved to openssl-users]
> 
> AFAIK, SSL_RECEIVED_SHUTDOWN means the **other side** (ie. 
> the server) sent
> you a shutdown. This could be because you are using HTTP/1.0 
> and not asking
> for a Keep-Alive connection in your request. All such connections are
> required to be shut-down by the protocol.
> 
> In any case, even if you received a shutdown, you can always do the
> handshake all over again and continue from there.
> 
> Arun.
> 
> "If you torture data long enough, it will admit anything you want.."
> 
> 
> ****************************************************************
> This message is for the named person(s) use only.  It may contain
> confidential, proprietary or legally privileged information.  No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please immediately delete it and
> all copies of it from your system, destroy any hard copies of it and
> notify the sender.  You must not, directly or indirectly, 
> use, disclose,
> distribute, print, or copy any part of this message if you are not the
> intended recipient. SPEEDERA NETWORKS, INC. reserves the right to
> monitor all e-mail communications through its network.
> 
> 
> -----Original Message-----
> From: Miha Wang <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Cc: Miha Wang <[EMAIL PROTECTED]>
> Date: Thursday, August 24, 2000 1:27 AM
> Subject: HELP NEEDED: Persist connection
> 
> >Basically, I want to write a client that uses persist connection
> >created by SSL_new() for repeat SSL_write() and SSL_read() calls.
> >However, after the first successful write/read, the 
> subsequent SSL_read()
> >with no data. After looking into the SSL_read() code, I found out
> >SSL_RECEIVED_SHUTDOWN was set in the connection handle (s->shutdown),
> >although I did not explicitly set in the program.  I did not 
> call any of
> the
> >shutdown
> >functions. I think it was set internally upon finishing the 
> first read.
> >Is anything need to be set during the connection?
> >My client is to connect to the HTTPS server (Netscape SSL). 
> Actually, the
> >program is very similar to the s_time.c in openSSL except not making
> >connection
> >everytime.
> 
> 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to