[prev in list] [next in list] [prev in thread] [next in thread] 

List:       thttpd
Subject:    Re: [THTTPD] Re: lingering_close() in thttpd
From:       Sascha Schumann <sascha () apache ! org>
Date:       2002-06-08 23:35:33
[Download RAW message or body]

On Sat, 8 Jun 2002, Yuchung Cheng wrote:

> On 06-08-2002, Yuchung Cheng wrote:
> > it seems thttpd does not implement the lingering_close
> > function in apache.
> my bad, it does implement this. however, instead of using
> SO_LINGER or shutdown methods in apache, thttpd waits 2 sec
> before sending FIN. during this 2 secs, what if the client
> sends another should_linger=1 request? in apache, it sends
> FIN first and ignore all subsequent requests.
>
> so this design is for performance issue?

    This has been addressed in recent versions.

    thttpd does a shutdown(fd, 1) immediately after sending out
    all data which should cause a half-close of the connection.

    - Sascha

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic