Re: [naviserver-devel] keep-alive

2006-07-07 Thread Bernd Eidenschink
Thanks Vlad! (I'll test it later, the server crashes as you already wrote) > In the nssock section set > > ns_param keepwait 0 > > it will disable all keepalives > > I will make ns_conn keepalive 0 > working as well to be able to disable keepalive per connection if neeeded

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
In the nssock section set ns_param keepwait 0 it will disable all keepalives I will make ns_conn keepalive 0 working as well to be able to disable keepalive per connection if neeeded Bernd Eidenschink wrote: Hi, how to turn off keep-alive on the server? Should "ns_conn keepalive 0" work? (BT

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: Okay, but at least ns_conn keepalive 1|0 to enable disable will be good to have if working with non-browser based http servers/clients? Non-HTTP server stuff rocks, but you have to remember that this is basically an HTTP server. The conseque

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
Okay, but at least ns_conn keepalive 1|0 to enable disable will be good to have if working with non-browser based http servers/clients? Stephen Deasey wrote: On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: You never know when this may come in handy :-)) It'll be handy code indeed if and

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: You never know when this may come in handy :-)) It'll be handy code indeed if and when you can think of a handy use for it. :-) Stephen Deasey wrote: > On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: >> I remember i added it when was

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
You never know when this may come in handy :-)) Stephen Deasey wrote: On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: I remember i added it when was testing video streaming with different players which expected it bu were not HTTP/1.1 compliant. ns_conn keepalive 0 to disable makes sense.

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: I remember i added it when was testing video streaming with different players which expected it bu were not HTTP/1.1 compliant. ns_conn keepalive 0 to disable makes sense. May be ns_conn keepalive -1 would revert keepalive rules to default the

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
I remember i added it when was testing video streaming with different players which expected it bu were not HTTP/1.1 compliant. ns_conn keepalive 0 to disable makes sense. May be ns_conn keepalive -1 would revert keepalive rules to default then? Stephen Deasey wrote: If: ns_conn keepaliv

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
If: ns_conn keepalive 1 forces keepalive, I would expect: ns_conn keepalive 0 to dissable it. Does this even make sense though? When would you explicitly enable or dissable keepalive in a tcl page script? On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: ns_conn keepalive 1 force

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
ns_conn keepalive 1 forces keepalive, otherwise there are several factors that defined whether or not it will be used. ns_conn keepalive 0 clears that flag, so it works as normal. There is not third state to disable normal rules, may be it is time to introduce them. Stephen Deasey wrote: On

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: Oops, i missed that, ns_conn keepalive 1 sets keepalive regardless of headers or methods, but does not disable it completely, if not set, normal rules apply So if you do: ns_conn keepalive 0 It doesn't disable keepalive? Does this make

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
Oops, i missed that, ns_conn keepalive 1 sets keepalive regardless of headers or methods, but does not disable it completely, if not set, normal rules apply Stephen Deasey wrote: On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: You may do ns_set update [ns_conn outputheaders] Connection cl

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Stephen Deasey
On 7/6/06, Vlad Seryakov <[EMAIL PROTECTED]> wrote: You may do ns_set update [ns_conn outputheaders] Connection close There is no parameter to disable it Then what's ns_conn keepalive about? Bernd Eidenschink wrote: > Hi, how to turn off keep-alive on the server? > > Should "ns_conn keepa

Re: [naviserver-devel] keep-alive

2006-07-06 Thread Vlad Seryakov
You may do ns_set update [ns_conn outputheaders] Connection close There is no parameter to disable it Bernd Eidenschink wrote: Hi, how to turn off keep-alive on the server? Should "ns_conn keepalive 0" work? (BTW my testserver shows internal server error when calling ns_conn keepalive "" )

[naviserver-devel] keep-alive

2006-07-06 Thread Bernd Eidenschink
Hi, how to turn off keep-alive on the server? Should "ns_conn keepalive 0" work? (BTW my testserver shows internal server error when calling ns_conn keepalive "" ) Or is there a config option?