From: Vlad S. <vl...@cr...> - 2006-02-26 19:05:48
|
I am still debugging this i as i see the probkem is in the Ns_ConnSend now, SockSend is called with nbufs 0 but there are still data to be sent. #3 0xb11f54f0 in ?? () (gdb) #4 0xb7d1a728 in sendmsg () from /lib/tls/libc.so.6 (gdb) #5 0xb7ec8331 in SockSend (sock=0, bufs=<value optimized out>, nbufs=-1323346704) at sock.c:912 912 n = sendmsg(sock, &msg, 0); (gdb) #6 0xb7ec83bc in Ns_SockSendBufs (sock=6, bufs=0xb11f55dc, nbufs=0, timeoutPtr=0xb11f5578) at sock.c:115 115 n = SockSend(sock, bufs, nbufs); (gdb) #7 0xb72d5452 in SockProc (cmd=DriverSend, sock=0xb7ef1580, bufs=0xb11f55dc, nbufs=-1323346704) at nssock.c:120 120 n = Ns_SockSendBufs(sock->sock, bufs, nbufs, &timeout); (gdb) #8 0xb7eb1477 in NsSockSend (sockPtr=0xb7ef1580, bufs=0x0, nbufs=0) at driver.c:761 761 return (*sockPtr->drvPtr->proc)(DriverSend, sock, bufs, nbufs); (gdb) #9 0xb7eadf22 in Ns_ConnSend (conn=0x80a40f8, bufs=0xb11f965c, nbufs=1) at connio.c:219 219 sent = NsSockSend(connPtr->sockPtr, sbufs, sn); (gdb) p sn $1 = 0 (gdb) p n $3 = 1 (gdb) p towrite $4 = 3204 (gdb) p nwrote $6 = 49152 -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |
From: Stephen D. <sd...@gm...> - 2006-02-26 19:45:16
|
How can I reproduce this problem? If you could write a short test, I can take a look at this. On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: > I am still debugging this i as i see the probkem is in the Ns_ConnSend > now, SockSend is called with nbufs 0 but there are still data to be sent. > > #3 0xb11f54f0 in ?? () > (gdb) > #4 0xb7d1a728 in sendmsg () from /lib/tls/libc.so.6 > (gdb) > #5 0xb7ec8331 in SockSend (sock=3D0, bufs=3D<value optimized out>, > nbufs=3D-1323346704) at sock.c:912 > 912 n =3D sendmsg(sock, &msg, 0); > (gdb) > #6 0xb7ec83bc in Ns_SockSendBufs (sock=3D6, bufs=3D0xb11f55dc, nbufs=3D0= , > timeoutPtr=3D0xb11f5578) > at sock.c:115 > 115 n =3D SockSend(sock, bufs, nbufs); > (gdb) > #7 0xb72d5452 in SockProc (cmd=3DDriverSend, sock=3D0xb7ef1580, > bufs=3D0xb11f55dc, nbufs=3D-1323346704) > at nssock.c:120 > 120 n =3D Ns_SockSendBufs(sock->sock, bufs, nbufs, &timeout); > (gdb) > #8 0xb7eb1477 in NsSockSend (sockPtr=3D0xb7ef1580, bufs=3D0x0, nbufs=3D0= ) at > driver.c:761 > 761 return (*sockPtr->drvPtr->proc)(DriverSend, sock, bufs, nbufs= ); > (gdb) > #9 0xb7eadf22 in Ns_ConnSend (conn=3D0x80a40f8, bufs=3D0xb11f965c, nbufs= =3D1) > at connio.c:219 > 219 sent =3D NsSockSend(connPtr->sockPtr, sbufs, sn); > (gdb) p sn > $1 =3D 0 > (gdb) p n > $3 =3D 1 > (gdb) p towrite > $4 =3D 3204 > (gdb) p nwrote > $6 =3D 49152 > > -- > Vlad Seryakov > 571 262-8608 office > vl...@cr... > http://www.crystalballinc.com/vlad/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |
From: Vlad S. <vl...@cr...> - 2006-02-26 22:07:34
|
ns_register_proc GET /ns_return_big {ns_return 200 text/plain [string repeat " " 32768] } Then try several times to hit your server /ns_return_big ns_info threads will show running threads which never exit: {-conn:ossweb:0 -driver- -1338524752 0 1140991547 ns:connthread {1 192.168.0.9 running GET /ns_return_big 16.526732 114674}} Stephen Deasey wrote: > How can I reproduce this problem? If you could write a short test, I > can take a look at this. > > > On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: >> I am still debugging this i as i see the probkem is in the Ns_ConnSend >> now, SockSend is called with nbufs 0 but there are still data to be sent. >> >> #3 0xb11f54f0 in ?? () >> (gdb) >> #4 0xb7d1a728 in sendmsg () from /lib/tls/libc.so.6 >> (gdb) >> #5 0xb7ec8331 in SockSend (sock=0, bufs=<value optimized out>, >> nbufs=-1323346704) at sock.c:912 >> 912 n = sendmsg(sock, &msg, 0); >> (gdb) >> #6 0xb7ec83bc in Ns_SockSendBufs (sock=6, bufs=0xb11f55dc, nbufs=0, >> timeoutPtr=0xb11f5578) >> at sock.c:115 >> 115 n = SockSend(sock, bufs, nbufs); >> (gdb) >> #7 0xb72d5452 in SockProc (cmd=DriverSend, sock=0xb7ef1580, >> bufs=0xb11f55dc, nbufs=-1323346704) >> at nssock.c:120 >> 120 n = Ns_SockSendBufs(sock->sock, bufs, nbufs, &timeout); >> (gdb) >> #8 0xb7eb1477 in NsSockSend (sockPtr=0xb7ef1580, bufs=0x0, nbufs=0) at >> driver.c:761 >> 761 return (*sockPtr->drvPtr->proc)(DriverSend, sock, bufs, nbufs); >> (gdb) >> #9 0xb7eadf22 in Ns_ConnSend (conn=0x80a40f8, bufs=0xb11f965c, nbufs=1) >> at connio.c:219 >> 219 sent = NsSockSend(connPtr->sockPtr, sbufs, sn); >> (gdb) p sn >> $1 = 0 >> (gdb) p n >> $3 = 1 >> (gdb) p towrite >> $4 = 3204 >> (gdb) p nwrote >> $6 = 49152 >> >> -- >> Vlad Seryakov >> 571 262-8608 office >> vl...@cr... >> http://www.crystalballinc.com/vlad/ >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting language >> that extends applications into web and mobile media. Attend the live webcast >> and join the prime developer group breaking into this new coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> naviserver-devel mailing list >> nav...@li... >> https://lists.sourceforge.net/lists/listinfo/naviserver-devel >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |
From: Stephen D. <sd...@gm...> - 2006-02-27 08:36:57
|
Give it a shot now. On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: > ns_register_proc GET /ns_return_big {ns_return 200 text/plain [string > repeat " " 32768] } > > Then try several times to hit your server /ns_return_big > ns_info threads will show running threads which never exit: > > {-conn:ossweb:0 -driver- -1338524752 0 1140991547 ns:connthread {1 > 192.168.0.9 running GET /ns_return_big 16.526732 114674}} > > Stephen Deasey wrote: > > How can I reproduce this problem? If you could write a short test, I > > can take a look at this. > > > > > > On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: > >> I am still debugging this i as i see the probkem is in the Ns_ConnSend > >> now, SockSend is called with nbufs 0 but there are still data to be se= nt. > >> > >> #3 0xb11f54f0 in ?? () > >> (gdb) > >> #4 0xb7d1a728 in sendmsg () from /lib/tls/libc.so.6 > >> (gdb) > >> #5 0xb7ec8331 in SockSend (sock=3D0, bufs=3D<value optimized out>, > >> nbufs=3D-1323346704) at sock.c:912 > >> 912 n =3D sendmsg(sock, &msg, 0); > >> (gdb) > >> #6 0xb7ec83bc in Ns_SockSendBufs (sock=3D6, bufs=3D0xb11f55dc, nbufs= =3D0, > >> timeoutPtr=3D0xb11f5578) > >> at sock.c:115 > >> 115 n =3D SockSend(sock, bufs, nbufs); > >> (gdb) > >> #7 0xb72d5452 in SockProc (cmd=3DDriverSend, sock=3D0xb7ef1580, > >> bufs=3D0xb11f55dc, nbufs=3D-1323346704) > >> at nssock.c:120 > >> 120 n =3D Ns_SockSendBufs(sock->sock, bufs, nbufs, &timeou= t); > >> (gdb) > >> #8 0xb7eb1477 in NsSockSend (sockPtr=3D0xb7ef1580, bufs=3D0x0, nbufs= =3D0) at > >> driver.c:761 > >> 761 return (*sockPtr->drvPtr->proc)(DriverSend, sock, bufs, nb= ufs); > >> (gdb) > >> #9 0xb7eadf22 in Ns_ConnSend (conn=3D0x80a40f8, bufs=3D0xb11f965c, nb= ufs=3D1) > >> at connio.c:219 > >> 219 sent =3D NsSockSend(connPtr->sockPtr, sbufs, sn); > >> (gdb) p sn > >> $1 =3D 0 > >> (gdb) p n > >> $3 =3D 1 > >> (gdb) p towrite > >> $4 =3D 3204 > >> (gdb) p nwrote > >> $6 =3D 49152 |
From: Vlad S. <vl...@cr...> - 2006-02-27 15:05:18
|
Output works fine now, make test stopped working though, not sure why,, driver does not see virtual servers from the config, is it me only? LD_LIBRARY_PATH="./nsd:./nsthread:../nsdb" ./nsd/nsd -c -d -t tests/test.nscfg all.tcl [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nsmain: Tcl version: 8.4.12 [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nsmain: NaviServer/4.99.2 starting [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nsmain: security info: uid=500, euid=500, gid=0, egid=0 [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024 [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: vhost[testvhost]: www.example.com:80 -> /home/vlad/src/naviserver/tests/testserver/vhosts/e/x/a/example.com/pages [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nsd/init.tcl: Booting virtual server: testvhost... [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: modload: loading /home/vlad/src/naviserver/tests/../nssock/nssock.so [27/Feb/2006:10:06:46][30105.3083638464][-main-] Notice: nssock: enable 1 spooler thread(s) for uploads >= 16384 bytes [27/Feb/2006:10:06:46][30105.3083638464][-main-] Error: nssock: no such server: test [27/Feb/2006:10:06:46][30105.3083638464][-main-] Error: nssock: no such server: test [27/Feb/2006:10:06:46][30105.3083638464][-main-] Error: nssock: no such server: testvhost2 [27/Feb/2006:10:06:46][30105.3083638464][-main-] Error: nssock: no such server: testvhost2 [27/Feb/2006:10:06:46][30105.3083638464][-main-] Fatal: nssock: default server testvhost2 not defined in ns/module/nssock/servers make: *** [test] Error 1 Stephen Deasey wrote: > Give it a shot now. > > On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: >> ns_register_proc GET /ns_return_big {ns_return 200 text/plain [string >> repeat " " 32768] } >> >> Then try several times to hit your server /ns_return_big >> ns_info threads will show running threads which never exit: >> >> {-conn:ossweb:0 -driver- -1338524752 0 1140991547 ns:connthread {1 >> 192.168.0.9 running GET /ns_return_big 16.526732 114674}} >> >> Stephen Deasey wrote: >>> How can I reproduce this problem? If you could write a short test, I >>> can take a look at this. >>> >>> >>> On 2/26/06, Vlad Seryakov <vl...@cr...> wrote: >>>> I am still debugging this i as i see the probkem is in the Ns_ConnSend >>>> now, SockSend is called with nbufs 0 but there are still data to be sent. >>>> >>>> #3 0xb11f54f0 in ?? () >>>> (gdb) >>>> #4 0xb7d1a728 in sendmsg () from /lib/tls/libc.so.6 >>>> (gdb) >>>> #5 0xb7ec8331 in SockSend (sock=0, bufs=<value optimized out>, >>>> nbufs=-1323346704) at sock.c:912 >>>> 912 n = sendmsg(sock, &msg, 0); >>>> (gdb) >>>> #6 0xb7ec83bc in Ns_SockSendBufs (sock=6, bufs=0xb11f55dc, nbufs=0, >>>> timeoutPtr=0xb11f5578) >>>> at sock.c:115 >>>> 115 n = SockSend(sock, bufs, nbufs); >>>> (gdb) >>>> #7 0xb72d5452 in SockProc (cmd=DriverSend, sock=0xb7ef1580, >>>> bufs=0xb11f55dc, nbufs=-1323346704) >>>> at nssock.c:120 >>>> 120 n = Ns_SockSendBufs(sock->sock, bufs, nbufs, &timeout); >>>> (gdb) >>>> #8 0xb7eb1477 in NsSockSend (sockPtr=0xb7ef1580, bufs=0x0, nbufs=0) at >>>> driver.c:761 >>>> 761 return (*sockPtr->drvPtr->proc)(DriverSend, sock, bufs, nbufs); >>>> (gdb) >>>> #9 0xb7eadf22 in Ns_ConnSend (conn=0x80a40f8, bufs=0xb11f965c, nbufs=1) >>>> at connio.c:219 >>>> 219 sent = NsSockSend(connPtr->sockPtr, sbufs, sn); >>>> (gdb) p sn >>>> $1 = 0 >>>> (gdb) p n >>>> $3 = 1 >>>> (gdb) p towrite >>>> $4 = 3204 >>>> (gdb) p nwrote >>>> $6 = 49152 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |
From: Zoran V. <zv...@ar...> - 2006-02-27 15:20:24
|
Am 27.02.2006 um 16:07 schrieb Vlad Seryakov: > Output works fine now, make test stopped working though, not sure > why,, driver does not see virtual servers from the config, is it me > only? > I was there yesterday or the day before... Please add the ns_atprestartup again to see if this helps: ns_runonce -global { ns_atprestartup { set modules [ns_configsection ns/modules] if {$modules ne ""} { foreach {module file} [ns_set array $modules] { ns_moduleload -global $module $file } } } } I removed the ns_atprestartup because it was not very logical to me that modules should be first loaded into private servers BEFORE global modules were being added. Yet: this is just a speculation. I do not know if this will help but its worth trying out. Cheers Zoran |