do you means that on server side, i can only free the resource of certion persistent 
connection when 

1. reading/writing error occures when server trys to read/write from the socket;

2. server side timeout(can be configed by hand.) occures.

is there any http headers for keeping the persistent connection, such as: browser send 
such messages to the server 
every XXX minutes/seconds, just like a heart beat.

and is there any headers for terminate a persistent connection?


thanks.




-----原始消息------
从:    "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 代表       
 "Arun Venkataraman" <[EMAIL PROTECTED]>
发送:  2000年8月25日 10:27
收件人:        "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
主题:  Re: using ssl in http protocol

-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, August 24, 2000 6:50 PM
Subject: re: using ssl in http protocol

>a question about persistent mode in http
>
>if in keep-alive mode, in the server side, how can i recongize a persistent
connection is shut down, and free the preserved resources of it? from the
appearence of http request and response, there seems on obvious steps to
tell the server an persistent connection will be terminated. and in the
client side, i also can't find any configuration about whether to choose
keep-alive mode. then how the browser knows if i want a persistent mode?
>
>another question is: now, which web servers and browsers support persistent
mode? i wish there are some open source products i can refer to.
>
>so many questions, thanks in advance.

You need to get familiar with the basics of HTTP. rfc 2068 is the ultimate
authority in this regard.

What happens is that the client submits a request say:
GET /index.html HTTP/1.0. This will cause the server to terminate the
connection after the request has been satisfied.

If the client says:
GET /index.html HTTP/1.0
Connection: Keep-Alive

this indicates to the server that the connection needs to be kept-alive. It
may then respond with a header that says it accepted the request. This
header is something like this:
HTTP/1.1 200 OK
Connection: Keep-Alive.

This indicates that the server has agreed to keep the connection alive.
However, the connection may be disconnected after a certain period of time
(a "timeout"). Note that a read/write on a closed connection will result in
an error message that indicates the connection has been closed.

HTH,
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.


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

想拥有一份只属于自己的简历助理吗?请赶快登陆搜狐求职助理!http://career.sohu.com/index.html


搜狐:http://www.sohu.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to