Ok, I have set timeout to be 1 and now I don see the error anymore.
Unfortunatelly, I still can connect to the server.
I have tried to connect to 8000 to no avail.
this si my config file:
set home [file dirname [ns_info config]]
set pageRoot $home/servers/server1/pages
ns_section "ns/parameters"
ns_param home $home
ns_param logdebug true
ns_section "ns/mimetypes"
ns_param default "*/*"
ns_param .adp "text/html; charset=iso-8859-1"
ns_section "ns/encodings"
ns_param adp "iso8859-1"
ns_section "ns/threads"
ns_param stacksize [expr 128 * 1024]
ns_section "ns/servers"
ns_param server1 "server1"
ns_section "ns/server/server1"
ns_param directoryfile "index.htm,index.html,index.adp"
ns_param pageroot $pageRoot
ns_param maxthreads 20
ns_param minthreads 5
ns_param maxconnections 20
ns_param urlcharset "utf-8"
ns_param outputcharset "utf-8"
ns_param inputcharset "utf-8"
ns_section "ns/server/server1/adp"
ns_param map "/*.adp"
ns_section "ns/server/server1/modules"
ns_param nssock nssock.so
ns_param nslog nslog.so
ns_param nscp nscp.so
ns_section "ns/server/server1/module/nssock"
ns_param hostname [ns_info hostname]
ns_param address [ns_info address]
ns_param port 8000
ns_param home /home/xbourgui/aolserver/aolserver4.5/servers/server1/pages
ns_section "ns/server/server1/module/nslog"
ns_param rolllog true
ns_param rollonsignal true
ns_param rollhour 0
ns_param maxbackup 2
ns_section "ns/server/server1/module/nscp"
ns_param address "127.0.0.1"
ns_param port 8000
ns_param cpcmdlogging "false"
ns_section "ns/server/server1/module/nscp/users"
ns_param user ":"
I had ns_param port set to 8001 on ns_section
"ns/server/server1/module/nscp", but i tried setting it to 8000 as you
can see. This did not change anything. As soon as I try to connect to
the http://127.0.0.1:8000 or 8001 (depending on config) I get this
line of log:
[05/Mar/2008:21:23:35][6845.3074046864][-nscp:1-] Notice: nscp:
127.0.0.1 connected, but nothing shows on the browser. As soon as I
kill the aolserver I get this on the browser:
login: Password: (with no input fields)
Still a mistery, to me anyway.
On 05/03/2008, Gustaf Neumann <[EMAIL PROTECTED]> wrote:
> Dossy Shiobara schrieb:
>
> > On 2008.03.04, Michael Andrews <[EMAIL PROTECTED]> wrote:
> >
> >> OK - I'll take a look tonight. I think that a 0 as the threadtimeout
> >> value use to mean "no timeout". I guess I'll need to look at the C to
> >> see what the changes were.
> >>
> >> Is this file even needed anymore?
> >>
> >
> > IMHO, the semantics around timeouts should ALWAYS be:
> >
> > <= -1 == infinite
> > 0 == immediate
> > >= 1 == n units
> >
>
> this value is used in queue.c, where incoming connections
> are enqueued. Not sure, if 0 is desirable (busy server, when
> nothing arrives) or -1 (block would make shutdown more
> complex).
>
> If i remember correct, my check was done in consistency with
> socktimeout, which is checked as well for n<1
>
> if (!Ns_ConfigGetInt(path, "socktimeout", &n) || n < 1) {
> n = 30; /* 30 seconds. */
> }
>
> For implementing -1 for infinite - if desired - more changes
> would be needed, since the value is used in Ns_IncrTime() which
> is agnostic for the timeout value semantics mentioned above.
>
> Not checking the input values (as it was before) is not
> a good idea either, since these values will break the server.
>
> best regards
>
> -gustaf neumann
>
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to <[EMAIL
> PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
> field of your email blank.
>
--
Xavier Bourguignon
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.