Re: htdig: sleeper


Tim Frost (tim@nz.eds.com)
Mon, 30 Mar 1998 18:46:33 +1200 (NZST)


On Sun, 29 Mar 1998, Brian Roberson wrote:

>
> I compiled/installed htdig 3 about 3 months ago, did a dig, everything
> worked great, decided that my content changed enough to run another dig
> and rundig sleeps. and as for calling the individual progs it will sleep
> with htdig. I did notice that if i indexed a relatively small site
> /directory it will go fine.
>
> output of 'strace ./htdig -v -s' ( tail of it )
>
> sin_addr=inet_addr("0.0.0.0")}, 16) = 0
> send(5, "Ri\1\0\0\1\0\0\0\0\0\0\3www\3bst"..., 28, 0) = 28
> select(6, [5], NULL, NULL, {5, 0}) = 1 (in [5], left {5, 0})
> recvfrom(5, "Ri\205\200\0\1\0\1\0\2\0\2\3www\3"..., 1024, 0,
> {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.0.1")},
> [16]) = 130
> close(5) = 0
> connect(4, {sin_family=AF_INET, sin_port=htons(80),
> sin_addr=inet_addr("24.3.225.109")}, 16
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What state is the connection from your server to this server in?
(Output from netstat -nt should look like
tim]$ netstat -nt
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 134.251.24.9:30220 134.251.24.9:7001
ESTABLISHED
tcp 0 0 134.251.24.9:7001 134.251.24.9:30220
ESTABLISHED
tcp 1 0 134.251.24.9:31251 134.251.64.251:110
TIME_WAIT

Which shows a local TCP connection (port 7001 is the font server on my
local system) which is established, and a connection to the POP server
which is closing down.

If it shows the connection as SYN-SENT, then your system is unable to
connect to the remote server, and is waiting for a timeout to occur.
>From the strace output, and your description, I would be inclined to
suspect that there is a link to a page that your config says that you
shoud index, but which is on a server that cannot be reached. If the
reference was to a host which is reachable, but which is not running a web
server, then you would see an error return code from the connect call,
with ERRNO indicating that the connection was refused.

Note that some OSes have a very long timeout on session establishment.
Also, if you are running HT:Dig on a system that does not have a DNS PTR
record, there can be delays caused by the web server attempting to get
that non-existent data from the DNS [usually caused by configuration
errors in /etc/resolv.conf on the server, which mean that the server can't
talk to the name service].

Hope that this helps

Tim

> Then it will just sit there, doing a ps auxwww will show the process
> sleeping.
>
> any clues??
>
>
> and then a shot of ( tail of it )
> 'strace ./rundig -v'
>
> read(3, "#! /bin/sh\n\n#\n# rundig\n#\n# "..., 602) = 602
> sigprocmask(SIG_BLOCK, [INT CHLD], []) = 0
> lseek(3, -429, SEEK_CUR) = 173
> fork(
> New server: www.bst.tj, 80
> ) = 397
> sigprocmask(SIG_SETMASK, [], NULL) = 0
> sigprocmask(SIG_BLOCK, [CHLD], []) = 0
> sigprocmask(SIG_SETMASK, [], NULL) = 0
> sigprocmask(SIG_BLOCK, [CHLD], []) = 0
> sigaction(SIGINT, {0x805b580, [], 0}, {0x804b600, [HUP INT ILL TRAP ABRT
> BUS FPE USR1 SEGV USR2 PIPE ALRM TERM XCPU XFSZ VTALRM PROF], 0}) = 0
> wait4(-1,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>
>
> Brian Roberson
> BrainStorm Technologies
> http://www.bst.tj/
> RTFM @ http://www.rtfm.tj/
> LiNUX Try it, you'll like it
> http://www.linux.org
>
> ----------------------------------------------------------------------
> To unsubscribe from the htdig mailing list, send a message to
> htdig-request@sdsu.edu containing the single word "unsubscribe" in
> the body of the message.
>

Tim Frost, Systems Engineer Email: Tim.Frost@nz.eds.com
EDS (NZ) Ltd, Voice: +64 4 495-0504
P.O. Box 3647, Fax: +64 4 495-0473
Wellington, New Zealand.

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:25:50 PST