🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
21 messages
21 total messages Started by Troy Piggins Wed, 25 Feb 2009 02:33
[slrn][leafnode] slrn slow reconnection to leafnode server?
#230628
Author: Troy Piggins
Date: Wed, 25 Feb 2009 02:33
30 lines
2673 bytes
Just noticed this over the last week or 2.  Not sure if it's been
happening since I reinstalled my server and hadn't noticed it, or
if it's only a recent thing.

I usually have slrn open in group display all the time in one of
my screen windows.  When I want to read a group I'll refresh
groups and off I go.  On my previous installation this was almost
instantaneous.  Now there is a noticeable couple of seconds delay
like slrn is trying to reconnect to my leafnode server.  Once it
has that connection, exiting and entering another group is
instantaneous as I'd expect.  But if I leave it again for a while
(not sure how long, haven't timed it), it does that
delay/reconnect thing.

Leafnode is running on the same machine as slrn, so it's all
local, although /etc/hosts points the leafnode hostname to
192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.

It's not just refreshing groups where there is this delay.  It's
also the first group I enter even if I don't refresh groups
first.  And IIRC also when I do start slrn for the first time.

Leafnode itself seems to work instantaneously for things like
fetchnews, which is why I'm thinking it's slrn connecting to
leafnode that's the problem.

Any ideas?

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230630
Author: Sidney Lambe
Date: Wed, 25 Feb 2009 03:02
40 lines
2541 bytes
Troy Piggins <usenet-0902@piggo.com> wrote:
> Just noticed this over the last week or 2.  Not sure if it's been
> happening since I reinstalled my server and hadn't noticed it, or
> if it's only a recent thing.
>
> I usually have slrn open in group display all the time in one of
> my screen windows.  When I want to read a group I'll refresh
> groups and off I go.  On my previous installation this was almost
> instantaneous.  Now there is a noticeable couple of seconds delay
> like slrn is trying to reconnect to my leafnode server.  Once it
> has that connection, exiting and entering another group is
> instantaneous as I'd expect.  But if I leave it again for a while
> (not sure how long, haven't timed it), it does that
> delay/reconnect thing.
>
> Leafnode is running on the same machine as slrn, so it's all
> local, although /etc/hosts points the leafnode hostname to
> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.
>
> It's not just refreshing groups where there is this delay.  It's
> also the first group I enter even if I don't refresh groups
> first.  And IIRC also when I do start slrn for the first time.
>
> Leafnode itself seems to work instantaneously for things like
> fetchnews, which is why I'm thinking it's slrn connecting to
> leafnode that's the problem.
>
> Any ideas?

I have noticed the same thing. For example, to load all
the articles you have stored locally in a newsgroup with
slrn/leafnode takes a LONG time.

But with slrn/slrnpull it is almost instantaneous. 

leafnode 2.0.0.alpha20070602a
Slrn 0.9.8.1 [2004-10-07]

Sid
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230632
Author: Troy Piggins
Date: Wed, 25 Feb 2009 03:56
49 lines
3244 bytes
* Troy Piggins wrote :
> 
> Just noticed this over the last week or 2.  Not sure if it's been
> happening since I reinstalled my server and hadn't noticed it, or
> if it's only a recent thing.
>
> I usually have slrn open in group display all the time in one of
> my screen windows.  When I want to read a group I'll refresh
> groups and off I go.  On my previous installation this was almost
> instantaneous.  Now there is a noticeable couple of seconds delay
> like slrn is trying to reconnect to my leafnode server.  Once it
> has that connection, exiting and entering another group is
> instantaneous as I'd expect.  But if I leave it again for a while
> (not sure how long, haven't timed it), it does that
> delay/reconnect thing.
>
> Leafnode is running on the same machine as slrn, so it's all
> local, although /etc/hosts points the leafnode hostname to
> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.
>
> It's not just refreshing groups where there is this delay.  It's
> also the first group I enter even if I don't refresh groups
> first.  And IIRC also when I do start slrn for the first time.
>
> Leafnode itself seems to work instantaneously for things like
> fetchnews, which is why I'm thinking it's slrn connecting to
> leafnode that's the problem.
>
> Any ideas?

Just changed my /etc/hosts to:

#v+
127.0.0.1 localhost news.piggo.com
192.168.0.1 piggo.com
#192.168.0.1 piggo.com news.piggo.com
#v-

and it's almost instantaneous again.  For some reason there's
quite a delay on the eth0 interface but lo interface is fine.
Dunno why, but the above solved it.  Don't think my iptables
firewall rules should delay it that long.  Anyway...

Thanks for all your help, Troy.

You're welcome, Troy.   :)

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230631
Author: Sidney Lambe
Date: Wed, 25 Feb 2009 04:22
55 lines
2990 bytes
Sidney Lambe <sidneylambe@nospam.invalid> wrote:
> Troy Piggins <usenet-0902@piggo.com> wrote:
>> Just noticed this over the last week or 2.  Not sure if it's been
>> happening since I reinstalled my server and hadn't noticed it, or
>> if it's only a recent thing.
>>
>> I usually have slrn open in group display all the time in one of
>> my screen windows.  When I want to read a group I'll refresh
>> groups and off I go.  On my previous installation this was almost
>> instantaneous.  Now there is a noticeable couple of seconds delay
>> like slrn is trying to reconnect to my leafnode server.  Once it
>> has that connection, exiting and entering another group is
>> instantaneous as I'd expect.  But if I leave it again for a while
>> (not sure how long, haven't timed it), it does that
>> delay/reconnect thing.
>>
>> Leafnode is running on the same machine as slrn, so it's all
>> local, although /etc/hosts points the leafnode hostname to
>> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.
>>
>> It's not just refreshing groups where there is this delay.  It's
>> also the first group I enter even if I don't refresh groups
>> first.  And IIRC also when I do start slrn for the first time.
>>
>> Leafnode itself seems to work instantaneously for things like
>> fetchnews, which is why I'm thinking it's slrn connecting to
>> leafnode that's the problem.
>>
>> Any ideas?
>
> I have noticed the same thing. For example, to load all
> the articles you have stored locally in a newsgroup with
> slrn/leafnode takes a LONG time.
>
> But with slrn/slrnpull it is almost instantaneous. 
>
> leafnode 2.0.0.alpha20070602a
> Slrn 0.9.8.1 [2004-10-07]
>
> Sid
>

I just discovered that my problem was expensive scoring with
slrn, which I didn't have when I was using slrnpull.

My /etc/hosts already looks like Troy's new one.

The way its supposed to look according to all the docs.


Sid

-- 
Wiccan Priest and Apprentice Magician
http://tinyurl.com/7vs9zb
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230633
Author: houghi
Date: Wed, 25 Feb 2009 08:02
19 lines
1846 bytes
Sidney Lambe wrote:
> I just discovered that my problem was expensive scoring with
> slrn, which I didn't have when I was using slrnpull.

This I understand.

> My /etc/hosts already looks like Troy's new one.
>
> The way its supposed to look according to all the docs.

Here I fail to see the relevance. I have some 16.000 (sixteen thousand)
domains in my hosts file, but I have never seen any delay in anything.

houghi
-- 
Theologians can pursuade themselves of anything. Anyone who can worship
a trinity and insists that his religion is a monotheism can believe
anything -- just give him time to rationalize it.
                           Robert A. Heinlein, JOB: A Comedy of Justice 
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230635
Author: Sidney Lambe
Date: Wed, 25 Feb 2009 09:32
21 lines
1618 bytes
houghi <houghi@houghi.org.invalid> wrote:
> Sidney Lambe wrote:
>> I just discovered that my problem was expensive scoring with
>> slrn, which I didn't have when I was using slrnpull.
>
> This I understand.
>
>> My /etc/hosts already looks like Troy's new one.
>>
>> The way its supposed to look according to all the docs.
>
> Here I fail to see the relevance. I have some 16.000 (sixteen thousand)
> domains in my hosts file, but I have never seen any delay in anything.
>

I don't know either, houghi. But if Troy said it helped, it probably
did. Might just be the way leafnode reads the file...

Sid

Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230634
Author: houghi
Date: Wed, 25 Feb 2009 12:00
26 lines
2311 bytes
Sidney Lambe wrote:
>> Here I fail to see the relevance. I have some 16.000 (sixteen thousand)
>> domains in my hosts file, but I have never seen any delay in anything.
>>
>
> I don't know either, houghi. But if Troy said it helped, it probably
> did. Might just be the way leafnode reads the file...

I have no doubt that it helped. I would love to know WHY it helped. That
way things can be improved.

I am puzzeld, because as far as I know, slrn just reads from the server.
At that moment leafnode should not be doing anything extra anymore
concerning DNS related things.

slrn will look up DNS, but when it is in the hosts file, there should be
no serious delay, even with larger hosts files. So I am curious as to
why it helped. If it is leafnode, perhaps a bugreport can help it in the
future. If slrn, the same applies.

houghi
-- 
Theologians can pursuade themselves of anything. Anyone who can worship
a trinity and insists that his religion is a monotheism can believe
anything -- just give him time to rationalize it.
                           Robert A. Heinlein, JOB: A Comedy of Justice 
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230641
Author: Troy Piggins
Date: Wed, 25 Feb 2009 20:48
59 lines
3663 bytes
* houghi wrote :
> Sidney Lambe wrote:
>>> Here I fail to see the relevance. I have some 16.000 (sixteen thousand)
>>> domains in my hosts file, but I have never seen any delay in anything.
>>
>> I don't know either, houghi. But if Troy said it helped, it probably
>> did. Might just be the way leafnode reads the file...
>
> I have no doubt that it helped. I would love to know WHY it helped. That
> way things can be improved.
>
> I am puzzeld, because as far as I know, slrn just reads from the server.
> At that moment leafnode should not be doing anything extra anymore
> concerning DNS related things.
>
> slrn will look up DNS, but when it is in the hosts file, there should be
> no serious delay, even with larger hosts files. So I am curious as to
> why it helped. If it is leafnode, perhaps a bugreport can help it in the
> future. If slrn, the same applies.

G'day houghi,

I don't understand why there is an issue either, but there is a
noticeable difference.   I too have large /etc/hosts files and
most other apps are instantaneous.  Pinging the hostname is
instantaneous, so it's not a DNS thing.

I thought it may be to do with xinetd, /etc/hosts.allow and
/etc/hosts.deny, but they appear to be "correct" too.

# /etc/hosts.allow
leafnode: 127.0.0.1 192.168.0.1 192.168.1.10

# /etc/hosts.deny
leafnode: ALL

# /etc/xinetd.d/nntp
service nntp
{
        flags           = NAMEINARGS NOLIBWRAP
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = news
        server          = /usr/sbin/tcpd
        server_args     = /usr/local/sbin/leafnode
        instances       = 7
        per_source      = 3
}

Only other things I can pin the blame on is iptables rules or
that there is indeed something going on directly with leafnode
and slrn if the connection if from somewhere other than
localhost.

I'll keep digging until it bores me.  Not long now.

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230647
Author: John E. Davis
Date: Wed, 25 Feb 2009 22:25
14 lines
1727 bytes
On Thu, 26 Feb 2009 06:48:15 +1000, Troy Piggins <usenet-0902@piggo.com>
wrote:
> I don't understand why there is an issue either, but there is a
> noticeable difference.   I too have large /etc/hosts files and
> most other apps are instantaneous.  Pinging the hostname is
> instantaneous, so it's not a DNS thing.

Try running strace on slrn and leafnode to see what system call is
hanging, e.g., 

   strace -p <pid>

Thanks,
--John
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230648
Author: andrew
Date: Wed, 25 Feb 2009 22:47
14 lines
1773 bytes
On 2009-02-25, Troy Piggins <usenet-0902@piggo.com> wrote:

> I thought it may be to do with xinetd

Back when I was setting up leafnode 2 on my Ubuntu setup I experimented
with the various 'superservers' available and eventually settled on the
openbsd-inetd (as it is labelled in the Ubuntu repository). Would it be
worth a try?

Andrew

-- 
echo 'hfrarg.naqerj@tznvy.pbz' | \
tr 'A-M N-Z a-m n-z' 'N-Z A-M n-z a-m'
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230650
Author: Troy Piggins
Date: Wed, 25 Feb 2009 23:14
14 lines
2100 bytes
* andrew wrote :
> On 2009-02-25, Troy Piggins <usenet-0902@piggo.com> wrote:
>
>> I thought it may be to do with xinetd
>
> Back when I was setting up leafnode 2 on my Ubuntu setup I experimented
> with the various 'superservers' available and eventually settled on the
> openbsd-inetd (as it is labelled in the Ubuntu repository). Would it be
> worth a try?

Depends if it is the cause or not  ;)

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230649
Author: Troy Piggins
Date: Wed, 25 Feb 2009 23:21
92 lines
7024 bytes
* John E. Davis wrote :
> On Thu, 26 Feb 2009 06:48:15 +1000, Troy Piggins <usenet-0902@piggo.com>
> wrote:
>> I don't understand why there is an issue either, but there is a
>> noticeable difference.   I too have large /etc/hosts files and
>> most other apps are instantaneous.  Pinging the hostname is
>> instantaneous, so it's not a DNS thing.
>
> Try running strace on slrn and leafnode to see what system call is
> hanging, e.g., 
>
>    strace -p <pid>

Thanks for the suggestion, John.  Here's the output of strace
with leafnode hostname as news.piggo.com and it's IP is
192.168.0.1.  I got the delay trying to read NSR.  Can you make
sense of this, because I can't?  (Looks like there are some
ANSI/escape sequences in there.  Sorry about that.

#v+
Process 27054 attached - interrupt to quit
select(5, [4], NULL, NULL, {4, 860000}) = 1 (in [4], left {2, 432000})
read(4, "\r", 1)                        = 1
rt_sigprocmask(SIG_BLOCK, [], [], 8)    = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
write(1, "\33[49;2Helecting news.software.re"..., 93) = 93
write(3, "GROUP news.software.readers\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {120, 0})
read(3, "", 8192)                       = 0
close(3)                                = 0
write(1, "\33[49;3Hrver news.piggo.com dropp"..., 63) = 63
write(1, "\rConnecting to host news.piggo.c"..., 88) = 88
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGINT, {0x807c790, [], SA_INTERRUPT}, {0xb7fa5c40, [], SA_INTERRUPT}, 8) = 0
socket(PF_NETLINK, SOCK_RAW, 0)         = 3
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=27054, groups=00000000}, [12]) = 0
time(NULL)                              = 1235603613
sendto(3, "\24\0\0\0\26\0\1\3\235\320\245I\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\24\0\2\0\235\320\245I\256i\0\0\2\10\200\376\1\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 168
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\24\0\2\0\235\320\245I\256i\0\0\n\200\200\376\1"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 192
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0\235\320\245I\256i\0\0\0\0\0\0\1\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 20
close(3)                                = 0
stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=172, ...}) = 0
open("/etc/hosts", O_RDONLY|0x80000 /* O_??? */) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=391, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cc2000
read(3, "#127.0.0.1\tlocalhost  news.piggo"..., 4096) = 391
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7cc2000, 4096)                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
rt_sigaction(SIGINT, {0xb7fa5c40, [], SA_INTERRUPT}, {0x807c790, [], SA_INTERRUPT}, 8) = 0
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {114, 976000})
read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85
write(3, "MODE READER\r\n", 13)         = 13
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 916000})
read(3, "200 Leafnode 2.0.0.alpha20081229"..., 8192) = 67
write(1, "\33[49;8Hed to host.  Posting ok. "..., 87) = 87
write(3, "GROUP rec.photo.digital\r\n", 25) = 25
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 988000})
read(3, "211 5261 244 6429 rec.photo.digi"..., 8192) = 52
write(3, "GROUP news.software.readers\r\n", 29) = 29
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 996000})
read(3, "211 1565 2 2089 news.software.re"..., 8192) = 54
brk(0x9653000)                          = 0x9653000
write(3, "XOVER 2089-2089\r\n", 17)     = 17
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 996000})
read(3, "224 Overview information for pos"..., 8192) = 50
select(4, [3], NULL, NULL, {120, 0})    = 1 (in [3], left {119, 960000})
read(3, "2089\tRe: [slrn][leafnode] slrn s"..., 8192) = 468
write(1, "\rnews.software.readers: headers "..., 46) = 46
write(1, "\rScoring articles ...           "..., 88) = 88
write(1, "\33[49;17H: 100%, Killed: 0, High:"..., 42) = 42
time(NULL)                              = 1235603619
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
write(1, "\rThreading by references ...    "..., 88) = 88
write(1, "\rLinking \"lost relatives\" ...", 29) = 29
write(1, "\33[49;9Harticles with identical s"..., 43) = 43
select(5, [4], NULL, NULL, {0, 0})      = 0 (Timeout)
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=413, ...}) = 0
write(1, "\33[2;2H\33[1m\33[33m\33[41m1! -  5000 2"..., 678) = 678
select(5, [4], NULL, NULL, {10, 0} <unfinished ...>
Process 27054 detached
#v-

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230656
Author: John E. Davis
Date: Thu, 26 Feb 2009 01:51
24 lines
2048 bytes
On Thu, 26 Feb 2009 09:21:42 +1000, Troy Piggins <usenet-0902@piggo.com>
wrote:
> Thanks for the suggestion, John.  Here's the output of strace
> with leafnode hostname as news.piggo.com and it's IP is
> 192.168.0.1.  I got the delay trying to read NSR.  Can you make
> sense of this, because I can't?  (Looks like there are some
> ANSI/escape sequences in there.  Sorry about that.

It would be better to strace slrn from the start:

   strace -o /tmp/slrn.strace /path/to/slrn <args...>

Or, if you compiled slrn with debugging support (CFLAGS=-g), run it in
gdb:

   unix# gdb slrn
   (gdb) run
       .
       .
     <wait until slrn hits the delay, then press Ctrl-g>
   (gdb) where full

Thanks,
--John
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230657
Author: Troy Piggins
Date: Thu, 26 Feb 2009 02:22
30 lines
2823 bytes
* John E. Davis wrote :
> On Thu, 26 Feb 2009 09:21:42 +1000, Troy Piggins <usenet-0902@piggo.com>
> wrote:
>> Thanks for the suggestion, John.  Here's the output of strace
>> with leafnode hostname as news.piggo.com and it's IP is
>> 192.168.0.1.  I got the delay trying to read NSR.  Can you make
>> sense of this, because I can't?  (Looks like there are some
>> ANSI/escape sequences in there.  Sorry about that.
>
> It would be better to strace slrn from the start:
>
>    strace -o /tmp/slrn.strace /path/to/slrn <args...>

File getting a bit large to insert here, so I'll keep it here til
we sort this out:

http://piggo.com/~troy/usenet_tmp_090226/strace.slrn

I ran the above strace command, it delayed on startup just before
it went to the groups display, then I just quit slrn again
figuring whatever has caused the delay is in there somewhere?

I haven't compiled slrn with that debug option, but if the above
isn't enough info I'm certainly willing to do so and provide gdb
output if you'd prefer that.

Thanks for sticking with me, John.

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230661
Author: John E. Davis
Date: Thu, 26 Feb 2009 03:48
14 lines
1802 bytes
On Thu, 26 Feb 2009 12:22:25 +1000, Troy Piggins <usenet-0902@piggo.com>
wrote:
> http://piggo.com/~troy/usenet_tmp_090226/strace.slrn

Unfortunately, I cannot tell from there where a delay occurs.   Feel
free to try it again using:

   strace -tt -o /tmp/slrn.strace /path/to/slrn

The -tt should cause each line to be prefixed with a time value.

Thanks,
--John
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230664
Author: Troy Piggins
Date: Thu, 26 Feb 2009 05:53
46 lines
4318 bytes
* John E. Davis wrote :
> On Thu, 26 Feb 2009 12:22:25 +1000, Troy Piggins <usenet-0902@piggo.com>
> wrote:
>> http://piggo.com/~troy/usenet_tmp_090226/strace.slrn
>
> Unfortunately, I cannot tell from there where a delay occurs.   Feel
> free to try it again using:
>
>    strace -tt -o /tmp/slrn.strace /path/to/slrn
>
> The -tt should cause each line to be prefixed with a time value.

Of course, sorry.  I've put the full file at the same URL above,
but here is an extract each side of a delay:

15:43:26.136132 stat64("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=172, ...}) = 0
15:43:26.136222 open("/etc/hosts", O_RDONLY|0x80000 /* O_??? */) = 3
15:43:26.136273 fstat64(3, {st_mode=S_IFREG|0644, st_size=391, ...}) = 0
15:43:26.136347 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7bad000
15:43:26.136393 read(3, "#127.0.0.1\tlocalhost  news.piggo"..., 4096) = 391
15:43:26.136457 read(3, "", 4096)       = 0
15:43:26.136500 close(3)                = 0
15:43:26.136541 munmap(0xb7bad000, 4096) = 0
15:43:26.136594 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
15:43:26.136645 connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
15:43:26.136910 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {109, 272000})
15:43:36.864744 read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85
15:43:36.864816 write(3, "MODE READER\r\n", 13) = 13
15:43:36.864900 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 916000})
15:43:36.945617 read(3, "200 Leafnode 2.0.0.alpha20081229"..., 8192) = 67
15:43:36.945710 write(1, "\n", 1)       = 1
15:43:36.945771 write(1, "Connected to host.  Posting ok.", 31) = 31
15:43:36.945833 write(3, "XOVER\r\n", 7) = 7
15:43:36.945917 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {120, 0})
15:43:36.946014 read(3, "412 Use the GROUP command first\r"..., 8192) = 33
15:43:36.946074 write(3, "XHDR Path\r\n", 11) = 11
15:43:36.946139 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {120, 0})
15:43:36.946237 read(3, "412 Use the GROUP command first\r"..., 8192) = 33
15:43:36.946306 write(3, "LIST OVERVIEW.FMT\r\n", 19) = 19
15:43:36.946373 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {120, 0})
15:43:36.946469 read(3, "215 information follows\r\nSubject"..., 8192) = 105
15:43:36.946546 open("/home/troy/.newsrc-piggo.time", O_RDONLY) = 4


-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230666
Author: houghi
Date: Thu, 26 Feb 2009 07:47
24 lines
2579 bytes
Troy Piggins wrote:
<snip>
> Of course, sorry.  I've put the full file at the same URL above,
> but here is an extract each side of a delay:

Narrowed it down.

> 15:43:26.136645 connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
> 15:43:26.136910 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {109, 272000})
> 15:43:36.864744 read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85

Looks as if here is the issue. Would it be possible to do the same with
127.0.0.1 and see what happens? Seems as if the problem is on the
leafnode side. It probably looks up who connects and then has a long
think about wether it will allow that or not.

Perhaps it tries to do a reverse lookup and then looks that up somehow
in the hosts file in some strange order.

houghi
-- 
You can have peace. Or you can have freedom. 
Don't ever count on having both at once.
                       -- Robert A. Heinlein 
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230672
Author: Troy Piggins
Date: Thu, 26 Feb 2009 12:52
33 lines
3326 bytes
* houghi wrote :
> Troy Piggins wrote:
> <snip>
>> Of course, sorry.  I've put the full file at the same URL above,
>> but here is an extract each side of a delay:
>
> Narrowed it down.
>
>> 15:43:26.136645 connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("192.168.0.1")}, 16) = 0
>> 15:43:26.136910 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {109, 272000})
>> 15:43:36.864744 read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85
>
> Looks as if here is the issue. Would it be possible to do the same with
> 127.0.0.1 and see what happens? Seems as if the problem is on the
> leafnode side. It probably looks up who connects and then has a long
> think about wether it will allow that or not.
>
> Perhaps it tries to do a reverse lookup and then looks that up somehow
> in the hosts file in some strange order.

Same section with 127.0.0.1

22:47:14.200579 connect(3, {sa_family=AF_INET, sin_port=htons(119), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
22:47:14.200704 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 996000})
22:47:14.203775 read(3, "200 Leafnode NNTP daemon, versio"..., 8192) = 85
22:47:14.203835 write(3, "MODE READER\r\n", 13) = 13
22:47:14.203904 select(4, [3], NULL, NULL, {120, 0}) = 1 (in [3], left {119, 916000})

Full here:
http://piggo.com/~troy/usenet_tmp_090226/strace.slrn.2

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230710
Author: General Patron
Date: Fri, 27 Feb 2009 08:05
7 lines
1484 bytes
Troy Piggins said the following on 2009-02-25 03:33:

> Leafnode is running on the same machine as slrn, so it's all
> local, although /etc/hosts points the leafnode hostname to
> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.

What happens if you point 127.0.0.1 to localhost?
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230716
Author: Troy Piggins
Date: Fri, 27 Feb 2009 10:25
23 lines
2068 bytes
* General Patron wrote :
> Troy Piggins said the following on 2009-02-25 03:33:
>
>> Leafnode is running on the same machine as slrn, so it's all
>> local, although /etc/hosts points the leafnode hostname to
>> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.
>
> What happens if you point 127.0.0.1 to localhost?

127.0.0.1 is always localhost.

>From /etc/hosts when there's a delay:

127.0.0.1 localhost
192.168.0.1 piggo.com news.piggo.com

>From /etc/hosts this does not give a delay:

127.0.0.1 localhost news.piggo.com
192.168.0.1 piggo.com

-- 
Troy Piggins
Re: [slrn][leafnode] slrn slow reconnection to leafnode server?
#230733
Author: General Patron
Date: Sat, 28 Feb 2009 06:32
25 lines
1996 bytes
Troy Piggins said the following on 2009-02-27 11:25:
> * General Patron wrote :
>> Troy Piggins said the following on 2009-02-25 03:33:
>>
>>> Leafnode is running on the same machine as slrn, so it's all
>>> local, although /etc/hosts points the leafnode hostname to
>>> 192.168.0.1 not 127.0.0.1.  I'm running leafnode through xinetd.
>> What happens if you point 127.0.0.1 to localhost?
> 


> From /etc/hosts when there's a delay:
> 
> 127.0.0.1 localhost
> 192.168.0.1 piggo.com news.piggo.com

You don't have the correct hostname for localhost.

> From /etc/hosts this does not give a delay:
> 
> 127.0.0.1 localhost news.piggo.com
> 192.168.0.1 piggo.com

Now you have the correct hostname.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads