[syslog-ng]io.c read() error?

SOLIS, ALEX syslog-ng@lists.balabit.hu
Wed, 30 Mar 2005 11:14:43 -0600


This is a multi-part message in MIME format.

------_=_NextPart_001_01C5354B.F76FBD93
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=20=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=0AI am using syslog-ng 1.6.5 on =
a Gentoo Linux system running kernel=0D=0A2.6.9.  I have recently modified =
an open source utility called NTsyslog=0D=0Ato send Windows NT style event =
logs via TCP to my syslog-ng server.=0D=0AEverything seems to work fine exc=
ept I receive a io.c read() error for=0D=0Aevery event sent over the networ=
k via TCP.  Anyone have any ideas of=0D=0Awhat my problem might be=3F  Here=
 are a few bits of info:=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=0ALogs that=
 I see when TCP syslog communication is attempted:=0D=0A=0D=0A=20=0D=0A=0D=0A=
Mar 30 10:43:48 src@lookout syslog-ng[3166]: AF_INET client connected=0D=0A=
from 192.168.11.19, port 3038=0D=0A=0D=0AMar 30 10:43:48 src@lookout syslog=
-ng[3166]: io.c: do_read: read()=0D=0Afailed (errno 104), Connection reset =
by peer=0D=0A=0D=0AMar 30 10:43:48 src@lookout syslog-ng[3166]: AF_INET cli=
ent dropped=0D=0Aconnection from 192.168.11.19, port 3038=0D=0A=0D=0AMar 30=
 10:43:48 src@lookout syslog-ng[3166]: AF_INET client connected=0D=0Afrom 1=
92.168.11.19, port 3039=0D=0A=0D=0AMar 30 10:43:48 src@lookout syslog-ng[31=
66]: io.c: do_read: read()=0D=0Afailed (errno 104), Connection reset by pee=
r=0D=0A=0D=0AMar 30 10:43:48 src@lookout syslog-ng[3166]: AF_INET client dr=
opped=0D=0Aconnection from 192.168.11.19, port 3039=0D=0A=0D=0AMar 30 10:49=
:05 src@lookout syslog-ng[3166]: AF_INET client connected=0D=0Afrom 192.168=
=2E11.19, port 3066=0D=0A=0D=0AMar 30 10:49:05 src@lookout syslog-ng[3166]:=
 io.c: do_read: read()=0D=0Afailed (errno 104), Connection reset by peer=0D=
=0A=0D=0AMar 30 10:49:05 src@lookout syslog-ng[3166]: AF_INET client droppe=
d=0D=0Aconnection from 192.168.11.19, port 3066=0D=0A=0D=0AMar 30 10:49:05 =
src@lookout syslog-ng[3166]: AF_INET client connected=0D=0Afrom 192.168.11.=
19, port 3067=0D=0A=0D=0AMar 30 10:49:05 src@lookout syslog-ng[3166]: io.c:=
 do_read: read()=0D=0Afailed (errno 104), Connection reset by peer=0D=0A=0D=
=0AMar 30 10:49:05 src@lookout syslog-ng[3166]: AF_INET client dropped=0D=0A=
connection from 192.168.11.19, port 3067=0D=0A=0D=0AMar 30 10:53:59 src@loo=
kout syslog-ng[3166]: AF_INET client connected=0D=0Afrom 192.168.11.19, por=
t 3077=0D=0A=0D=0AMar 30 10:53:59 src@lookout syslog-ng[3166]: io.c: do_rea=
d: read()=0D=0Afailed (errno 104), Connection reset by peer=0D=0A=0D=0AMar =
30 10:53:59 src@lookout syslog-ng[3166]: AF_INET client dropped=0D=0Aconnec=
tion from 192.168.11.19, port 3077=0D=0A=0D=0AMar 30 10:53:59 src@lookout s=
yslog-ng[3166]: AF_INET client connected=0D=0Afrom 192.168.11.19, port 3078=0D=
=0A=0D=0AMar 30 10:53:59 src@lookout syslog-ng[3166]: io.c: do_read: read()=0D=
=0Afailed (errno 104), Connection reset by peer=0D=0A=0D=0AMar 30 10:53:59 =
src@lookout syslog-ng[3166]: AF_INET client dropped=0D=0Aconnection from 19=
2.168.11.19, port 3078=0D=0A=0D=0AMar 30 10:58:53 src@lookout syslog-ng[316=
6]: AF_INET client connected=0D=0Afrom 192.168.11.19, port 3092=0D=0A=0D=0A=
Mar 30 10:58:53 src@lookout syslog-ng[3166]: io.c: do_read: read()=0D=0Afai=
led (errno 104), Connection reset by peer=0D=0A=0D=0AMar 30 10:58:53 src@lo=
okout syslog-ng[3166]: AF_INET client dropped=0D=0Aconnection from 192.168.=
11.19, port 3092=0D=0A=0D=0AMar 30 10:59:16 src@lookout syslog-ng[3166]: AF=
_INET client connected=0D=0Afrom 192.168.11.19, port 3093=0D=0A=0D=0AMar 30=
 10:59:16 src@lookout syslog-ng[3166]: io.c: do_read: read()=0D=0Afailed (e=
rrno 104), Connection reset by peer=0D=0A=0D=0AMar 30 10:59:16 src@lookout =
syslog-ng[3166]: AF_INET client dropped=0D=0Aconnection from 192.168.11.19,=
 port 3093=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=0AAfinet.c in syslog-ng 1=
=2E6.6 sources where io_read() is called:=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=
=0A/* af_inet source connection */=0D=0A=0D=0Astatic int=20=0D=0A=0D=0Ado_i=
nit_afinet_source_connection(struct log_handler *c,=20=0D=0A=0D=0A         =
                                        struct syslog_config=0D=0A*cfg,=0D=0A=0D=
=0A                                                 struct=0D=0Apersistent_=
config *persistent)=0D=0A=0D=0A{=0D=0A=0D=0A            CAST(afsocket_sourc=
e_connection, self, c);=0D=0A=0D=0A            if (self->client_addr) {=0D=0A=0D=
=0A                        CAST(inet_address_info, inet,=0D=0Aself->client_=
addr);=0D=0A=0D=0A=20=0D=0A=0D=0A                        /* SOCK_STREAM */=0D=
=0A=0D=0A                        notice("AF_INET client connected from %S, =
port=0D=0A%i\n",=20=0D=0A=0D=0A                               inet->ip, ine=
t->port);=0D=0A=0D=0A                        io_read(self->client,=20=0D=0A=0D=
=0A                                    make_log_reader(0, NULL,=0D=0Acfg->l=
og_msg_size, 0, cfg->check_hostname =3F LF_CHECK_HOSTNAME : 0,=0D=0Acfg->ba=
d_hostname, c),=20=0D=0A=0D=0A=20=0D=0Amake_afsocket_source_close_callback(=
self));=0D=0A=0D=0A            }=0D=0A=0D=0A            else {=0D=0A=0D=0A =
                       /* SOCK_DGRAM */=0D=0A=0D=0A                        =
io_read(self->client,=20=0D=0A=0D=0A                                    mak=
e_log_reader(1, NULL,=0D=0Acfg->log_msg_size, 0, cfg->check_hostname =3F LF=
_CHECK_HOSTNAME : 0,=0D=0Acfg->bad_hostname, c),=20=0D=0A=0D=0A=20=0D=0Amak=
e_afsocket_source_close_callback(self));=0D=0A=0D=0A            }=0D=0A=0D=0A=
           =20=0D=0A=0D=0A            return ST_OK | ST_GOON;=0D=0A=0D=0A}=0D=
=0A=0D=0A=20=0D=0A=0D=0A< -----END of CODE ---- >=0D=0A=0D=0A=20=0D=0A=0D=0A=
=20=0D=0A=0D=0AI have been trying to find what values are passed to io_read=
() and=0D=0Amake_log_reader() but I have been unsuccessfull. =20=0D=0A=0D=0A=
Thanks in advance for any replies.=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=0A=
Alex S.=0D=0A=0D=0A=20=0D=0A=0D=0A=20=0D=0A=0D=0A=0D=0A<p class=3DMsoNormal=
><span style=3D'font-size:8.5pt'>This e-mail contains Omaha Public Power Di=
strict's confidential and proprietary information and is for use only by th=
e intended recipient.  Unless explicitly stated otherwise, this e-mail is n=
ot a contract offer, amendment, nor acceptance.  If you are not the intende=
d recipient you are notified that disclosing, copying, distributing or taki=
ng any action in reliance on the contents of this information is strictly p=
rohibited.</p>=0D=0A=0D=0A
------_=_NextPart_001_01C5354B.F76FBD93
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>=0D=0A=0D=0A<head>=0D=0A<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"=
text/html; charset=3Dus-ascii">=0D=0A=0D=0A=0D=0A<meta name=3DGenerator con=
tent=3D"Microsoft Word 10 (filtered)">=0D=0A=0D=0A<style>=0D=0A<!--=0D=0A /=
* Style Definitions */=0D=0A p.MsoNormal, li.MsoNormal, div.MsoNormal=0D=0A=
=09{margin:0in;=0D=0A=09margin-bottom:.0001pt;=0D=0A=09font-size:12.0pt;=0D=
=0A=09font-family:"Times New Roman";}=0D=0Aa:link, span.MsoHyperlink=0D=0A=09=
{color:blue;=0D=0A=09text-decoration:underline;}=0D=0Aa:visited, span.MsoHy=
perlinkFollowed=0D=0A=09{color:purple;=0D=0A=09text-decoration:underline;}=0D=
=0Aspan.EmailStyle17=0D=0A=09{font-family:Arial;=0D=0A=09color:windowtext;}=0D=
=0A@page Section1=0D=0A=09{size:8.5in 11.0in;=0D=0A=09margin:1.0in 1.25in 1=
=2E0in 1.25in;}=0D=0Adiv.Section1=0D=0A=09{page:Section1;}=0D=0A-->=0D=0A</=
style>=0D=0A=0D=0A</head>=0D=0A=0D=0A<body lang=3DEN-US link=3Dblue vlink=3D=
purple>=0D=0A=0D=0A<div class=3DSection1>=0D=0A=0D=0A<p class=3DMsoNormal><=
font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-famil=
y:Arial'>&nbsp;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font siz=
e=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'=
>&nbsp;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 fa=
ce=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;<=
/span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DAri=
al><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>I am using sysl=
og-ng 1.6.5 on a Gentoo Linux system running=0D=0Akernel 2.6.9.&nbsp; I hav=
e recently modified an open source utility called NTsyslog=0D=0Ato send Win=
dows NT style event logs via TCP to my syslog-ng server.&nbsp;=0D=0AEveryth=
ing seems to work fine except I receive a io.c read() error for every=0D=0A=
event sent over the network via TCP.&nbsp; Anyone have any ideas of what my=
 problem=0D=0Amight be=3F &nbsp;Here are a few bits of info:</span></font><=
/p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=
=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-siz=
e:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></font></p>=0D=0A=0D=0A<p cl=
ass=3DMsoNormal><u><font size=3D2 face=3DArial><span style=3D'font-size:10.=
0pt;=0D=0Afont-family:Arial'>Logs that I see when TCP syslog commu</span></=
font></u><u><font=0D=0A size=3D2 face=3DArial><span style=3D'font-size:10.0=
pt;font-family:Arial'>nic</span></font></u><u><font=0D=0Asize=3D2 face=3DAr=
ial><span style=3D'font-size:10.0pt;font-family:Arial'>ation is=0D=0Aattemp=
ted:</span></font></u></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 f=
ace=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;=
</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fa=
mily:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span style=3D=
'font-size:10.0pt;font-family:Arial'>10:43:48</span></font><font=0D=0Asize=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> src@look=
out=0D=0Asyslog-ng[3166]: AF_INET client connected from 192.168.11.19, port=
 3038</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-lef=
t:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:43:48</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: io.c: do_read: read() failed (errno 104), =
Connection reset by=0D=0Apeer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNo=
rmal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyl=
e=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font size=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:43:48<=
/span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10.0=
pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: AF_INET client dro=
pped connection from 192.168.11.19, port=0D=0A3038</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DAr=
ial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span><=
/font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-fami=
ly:Arial'>10:43:48</span></font><font=0D=0Asize=3D2 face=3DArial><span styl=
e=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]:=
 AF_INET client connected from 192.168.11.19, port 3039</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </=
span></font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;fon=
t-family:Arial'>10:43:48</span></font><font=0D=0Asize=3D2 face=3DArial><spa=
n style=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[=
3166]: io.c: do_read: read() failed (errno 104), Connection reset by=0D=0Ap=
eer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:=
=2E5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:43:48</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: AF_INET client dropped connection from 192=
=2E168.11.19, port=0D=0A3039</span></font></p>=0D=0A=0D=0A<p class=3DMsoNor=
mal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=
=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font size=3D2=
 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:49:05</=
span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10.0p=
t;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: AF_INET client conn=
ected from 192.168.11.19, port 3066</span></font></p>=0D=0A=0D=0A<p class=3D=
MsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0A=
style=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font siz=
e=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:49=
:05</span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:=
10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: io.c: do_read:=
 read() failed (errno 104), Connection reset by=0D=0Apeer</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </=
span></font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;fon=
t-family:Arial'>10:49:05</span></font><font=0D=0Asize=3D2 face=3DArial><spa=
n style=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[=
3166]: AF_INET client dropped connection from 192.168.11.19, port=0D=0A3066=
</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fa=
mily:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span style=3D=
'font-size:10.0pt;font-family:Arial'>10:49:05</span></font><font=0D=0Asize=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> src@look=
out=0D=0Asyslog-ng[3166]: AF_INET client connected from 192.168.11.19, port=
 3067</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-lef=
t:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:49:05</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: io.c: do_read: read() failed (errno 104), =
Connection reset by=0D=0Apeer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNo=
rmal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyl=
e=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font size=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:49:05<=
/span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10.0=
pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: AF_INET client dro=
pped connection from 192.168.11.19, port=0D=0A3067</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DAr=
ial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span><=
/font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-fami=
ly:Arial'>10:53:59</span></font><font=0D=0Asize=3D2 face=3DArial><span styl=
e=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]:=
 AF_INET client connected from 192.168.11.19, port 3077</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </=
span></font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;fon=
t-family:Arial'>10:53:59</span></font><font=0D=0Asize=3D2 face=3DArial><spa=
n style=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[=
3166]: io.c: do_read: read() failed (errno 104), Connection reset by=0D=0Ap=
eer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:=
=2E5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:53:59</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: AF_INET client dropped connection from 192=
=2E168.11.19, port=0D=0A3077</span></font></p>=0D=0A=0D=0A<p class=3DMsoNor=
mal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=
=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font size=3D2=
 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:53:59</=
span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10.0p=
t;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: AF_INET client conn=
ected from 192.168.11.19, port 3078</span></font></p>=0D=0A=0D=0A<p class=3D=
MsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0A=
style=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font siz=
e=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:53=
:59</span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:=
10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: io.c: do_read:=
 read() failed (errno 104), Connection reset by=0D=0Apeer</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </=
span></font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;fon=
t-family:Arial'>10:53:59</span></font><font=0D=0Asize=3D2 face=3DArial><spa=
n style=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[=
3166]: AF_INET client dropped connection from 192.168.11.19, port=0D=0A3078=
</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fa=
mily:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span style=3D=
'font-size:10.0pt;font-family:Arial'>10:58:53</span></font><font=0D=0Asize=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> src@look=
out=0D=0Asyslog-ng[3166]: AF_INET client connected from 192.168.11.19, port=
 3092</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-lef=
t:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:58:53</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: io.c: do_read: read() failed (errno 104), =
Connection reset by=0D=0Apeer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNo=
rmal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyl=
e=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span></font><font size=3D=
2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'>10:58:53<=
/span></font><font=0D=0Asize=3D2 face=3DArial><span style=3D'font-size:10.0=
pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]: AF_INET client dro=
pped connection from 192.168.11.19, port=0D=0A3092</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DAr=
ial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </span><=
/font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-fami=
ly:Arial'>10:59:16</span></font><font=0D=0Asize=3D2 face=3DArial><span styl=
e=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[3166]:=
 AF_INET client connected from 192.168.11.19, port 3093</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>Mar 30 </=
span></font><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;fon=
t-family:Arial'>10:59:16</span></font><font=0D=0Asize=3D2 face=3DArial><spa=
n style=3D'font-size:10.0pt;font-family:Arial'> src@lookout=0D=0Asyslog-ng[=
3166]: io.c: do_read: read() failed (errno 104), Connection reset by=0D=0Ap=
eer</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:=
=2E5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>Mar 30 </span></font><font size=3D2 face=3DArial><span sty=
le=3D'font-size:10.0pt;font-family:Arial'>10:59:16</span></font><font=0D=0A=
size=3D2 face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial'> s=
rc@lookout=0D=0Asyslog-ng[3166]: AF_INET client dropped connection from 192=
=2E168.11.19, port=0D=0A3093</span></font></p>=0D=0A=0D=0A<p class=3DMsoNor=
mal><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-=
family:Arial'>&nbsp;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><fon=
t size=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:A=
rial'>&nbsp;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><u><font siz=
e=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'=
>Afinet.c in syslog-ng 1.6.6 sources where io_read() is=0D=0Acalled:</span>=
</font></u></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial=
><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></fo=
nt></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span s=
tyle=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>/* af_ine=
t source connection */</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal st=
yle=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'fo=
nt-size:10.0pt;font-family:Arial'>static int </span></font></p>=0D=0A=0D=0A=
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial=
><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>do_init_afinet_sou=
rce_connection(struct=0D=0Alog_handler *c, </span></font></p>=0D=0A=0D=0A<p=
 class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><=
span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;struct=0D=0Asyslog_config *cfg,=
</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fa=
mily:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp=
;struct=0D=0Apersistent_config *persistent)</span></font></p>=0D=0A=0D=0A<p=
 class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><=
span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>{</span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CAST(afsocket_sou=
rce_connection,=0D=0Aself, c);</span></font></p>=0D=0A=0D=0A<p class=3DMsoN=
ormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Asty=
le=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if=0D=0A(self-&gt;client_addr) {</span></=
font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font =
size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Aria=
l'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CAST(ine=
t_address_info,=0D=0Ainet, self-&gt;client_addr);</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DAr=
ial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></=
font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font =
size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Aria=
l'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><span=0D=
=0Astyle=3D'font-weight:bold'>/* SOCK_STREAM */</span></b></span></font></p=
>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><b><font size=3D=
2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial;font-=
weight:bold'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; notice(&quot;AF_INET=0D=0Aclient connected from %S, port %i\n&quot;, </sp=
an></font></b></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><b><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font=
-family:Arial;font-weight:bold'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=0D=0Ainet-&gt;ip,=
 inet-&gt;port);</span></font></b></p>=0D=0A=0D=0A<p class=3DMsoNormal styl=
e=3D'margin-left:.5in'><b><font size=3D2 face=3DArial><span=0D=0Astyle=3D'f=
ont-size:10.0pt;font-family:Arial;font-weight:bold'>&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; io_read(self-&gt;client,=0D=0A</sp=
an></font></b></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5i=
n'><b><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font=
-family:Arial;font-weight:bold'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; make_log_reader(0,=0D=0ANULL, cfg-&gt;log_msg_size, 0, cf=
g-&gt;check_hostname =3F LF_CHECK_HOSTNAME : 0, cfg-&gt;bad_hostname,=0D=0A=
c), </span></font></b></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-=
left:.5in'><b><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.=
0pt;font-family:Arial;font-weight:bold'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; make_afsocket_source_close_callback(self));</span=
></font></b></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'=
><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fami=
ly:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; }</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:=
=2E5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;fo=
nt-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; else=0D=0A{</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal styl=
e=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font=
-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; /*=0D=0ASOCK_DGRAM */</span></font></p>=0D=0A=0D=0A<p =
class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><s=
pan=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; io_read(self-&gt;client,=0D=0A</=
span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'=
><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-fami=
ly:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make=
_log_reader(1,=0D=0ANULL, cfg-&gt;log_msg_size, 0, cfg-&gt;check_hostname =3F=
 LF_CHECK_HOSTNAME : 0, cfg-&gt;bad_hostname,=0D=0Ac), </span></font></p>=0D=
=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 fac=
e=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make_afsocket_source_cl=
ose_callback(self));</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal styl=
e=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D'font=
-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; }</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal=
 style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyle=3D=
'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></p>=0D=0A=0D=0A<p class=3DMsoNo=
rmal style=3D'margin-left:.5in'><font size=3D2 face=3DArial><span=0D=0Astyl=
e=3D'font-size:10.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return=0D=0AST_OK | ST_GOON;</span></font>=
</p>=0D=0A=0D=0A<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D=
2 face=3DArial><span=0D=0Astyle=3D'font-size:10.0pt;font-family:Arial'>}</s=
pan></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial=
><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></fo=
nt></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span s=
tyle=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&lt; -----END of CODE ---=
- &gt;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 fac=
e=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</=
span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DAria=
l><span style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></f=
ont></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;=0D=0Afont-family:Arial'>I have been trying to fi=
nd what values are passed to io_read()=0D=0Aand make_log_reader() but I hav=
e been unsuccessfull.&nbsp; </span></font></p>=0D=0A=0D=0A<p class=3DMsoNor=
mal><font size=3D2 face=3DArial><span style=3D'font-size:10.0pt;=0D=0Afont-=
family:Arial'>Thanks in advance for any replies.</span></font></p>=0D=0A=0D=
=0A<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-siz=
e:10.0pt;=0D=0Afont-family:Arial'>&nbsp;</span></font></p>=0D=0A=0D=0A<p cl=
ass=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D'font=
-size:=0D=0A12.0pt'>&nbsp;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNorma=
l><font size=3D3 face=3D"Times New Roman"><span style=3D'font-size:=0D=0A12=
=2E0pt'>Alex S.</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font siz=
e=3D3 face=3D"Times New Roman"><span style=3D'font-size:=0D=0A12.0pt'>&nbsp=
;</span></font></p>=0D=0A=0D=0A<p class=3DMsoNormal><font size=3D3 face=3D"=
Times New Roman"><span style=3D'font-size:=0D=0A12.0pt'>&nbsp;</span></font=
></p>=0D=0A=0D=0A</div>=0D=0A=0D=0A<br><br><table bgcolor=3Dwhite style=3D"=
color:black"><tr><td><br><br>=0D=0A&lt;p&nbsp;class=3DMsoNormal&gt;&lt;span=
&nbsp;style=3D&#39;font-size:8.5pt&#39;&gt;This&nbsp;e-mail&nbsp;contains&n=
bsp;Omaha&nbsp;Public&nbsp;Power&nbsp;District&#39;s&nbsp;confidential&nbsp=
;and&nbsp;proprietary&nbsp;information&nbsp;and&nbsp;is&nbsp;for&nbsp;use&n=
bsp;only&nbsp;by&nbsp;the&nbsp;intended&nbsp;recipient.&nbsp;&nbsp;Unless&n=
bsp;explicitly&nbsp;stated&nbsp;otherwise,&nbsp;this&nbsp;e-mail&nbsp;is&nb=
sp;not&nbsp;a&nbsp;contract&nbsp;offer,&nbsp;amendment,&nbsp;nor&nbsp;accep=
tance.&nbsp;&nbsp;If&nbsp;you&nbsp;are&nbsp;not&nbsp;the&nbsp;intended&nbsp=
;recipient&nbsp;you&nbsp;are&nbsp;notified&nbsp;that&nbsp;disclosing,&nbsp;=
copying,&nbsp;distributing&nbsp;or&nbsp;taking&nbsp;any&nbsp;action&nbsp;in=
&nbsp;reliance&nbsp;on&nbsp;the&nbsp;contents&nbsp;of&nbsp;this&nbsp;inform=
ation&nbsp;is&nbsp;strictly&nbsp;prohibited.&lt;/p&gt;<br>=0D=0A<br>=0D=0A<=
/td></tr></table></body>=0D=0A=0D=0A</html>=0D=0A
------_=_NextPart_001_01C5354B.F76FBD93--