BUG in spread event processing

Arkady Lipovetsky <[email protected]> Sun, 4 Dec 2016 09:14:19 +0000
Newsgroups gmane.network.spread.user
Message-ID <SN2PR05MB2669629316C52A9441CCD868D2800@SN2PR05MB2669.namprd05.prod.outlook.com>
--===============2809014549762052828==
Content-Language: en-US
Content-Type: multipart/related;
	boundary="_004_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_";
	type="multipart/alternative"

--_004_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_
Content-Type: multipart/alternative;
	boundary="_000_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_"

--_000_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi, guys I have encountered a BUG in spread user interface that is intended=
 for asynchronous working (event system). The mechanism is implemented on "=
select" call, but this call has some limitation such as a max file descript=
or that is 1024. The spread check this value and generate an error if file =
descriptor more than 1024. In my local version I has solved this issue by u=
sing epoll system call instead select. We are using a huge number for file =
descriptors, so if  number of used file descriptors is more than 1024 (it h=
appens at spread reconnection time we get a Error). I checked all previous =
version and found that this BUG exist in all of tham.

Thanks

Arkady Lipovetsky software engineer

mobile: +972 (54) 6360-986

office: +972 (54) 6360-986

e-Mail: [email protected]<mailto:[email protected]>

skype: arklip_peerapp

[cid:[email protected]]<http://www.peerapp.com/>




--_000_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi, guys I have encountered a BUG in spread user int=
erface that is intended for asynchronous working (event system). The mechan=
ism is implemented on &quot;select&quot; call, but this call has some limit=
ation such as a max file descriptor that is
 1024. The spread check this value and generate an error if file descriptor=
 more than 1024. In my local version I has solved this issue by using epoll=
 system call instead select. We are using a huge number for file descriptor=
s, so if&nbsp; number of used file descriptors
 is more than 1024 (it happens at spread reconnection time we get a Error).=
 I checked all previous version and found that this BUG exist in all of tha=
m.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<table class=3D"MsoTableGrid" border=3D"0" cellspacing=3D"0" cellpadding=3D=
"0" style=3D"border-collapse:collapse;border:none">
<tbody>
<tr style=3D"height:9.25pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:9.25pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><b><span style=3D"font=
-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#00=
A0DC">Arkady Lipovetsky
</span></b><span style=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&q=
uot;sans-serif&quot;;color:#64BE46">software engineer</span><b><span style=
=3D"font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;c=
olor:#00A0DC"><o:p></o:p></span></b></p>
</td>
</tr>
<tr style=3D"height:12.55pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:12.55pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><span style=3D"font-si=
ze:8.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">mobile: &#43=
;972 (54) 6360-986<o:p></o:p></span></p>
</td>
</tr>
<tr style=3D"height:5.65pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:5.65pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><span style=3D"font-si=
ze:8.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">office: &#43=
;972 (54) 6360-986<o:p></o:p></span></p>
</td>
</tr>
<tr style=3D"height:5.15pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:5.15pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><span style=3D"font-si=
ze:8.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">e-Mail:
</span><span style=3D"font-size:9.5pt"><a href=3D"mailto:[email protected]=
"><span style=3D"color:black">arkady</span><span style=3D"font-size:8.5pt;f=
ont-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">@peerapp.c=
om</span></a></span><span style=3D"font-size:8.5pt;font-family:&quot;Arial&=
quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
</td>
</tr>
<tr style=3D"height:7.05pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:7.05pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><span style=3D"font-si=
ze:8.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">skype: arkli=
p_peerapp<o:p></o:p></span></p>
</td>
</tr>
<tr style=3D"height:17.95pt">
<td width=3D"246" style=3D"width:184.5pt;padding:0cm 5.4pt 0cm 5.4pt;height=
:17.95pt">
<p class=3D"MsoNormal" style=3D"margin-left:-5.65pt"><a href=3D"http://www.=
peerapp.com/"><span style=3D"font-size:14.0pt;font-family:&quot;Arial&quot;=
,&quot;sans-serif&quot;;color:windowtext;text-decoration:none"><img border=
=3D"0" width=3D"64" height=3D"31" id=3D"Picture_x0020_4" src=3D"cid:image00=
[email protected]"></span></a><span style=3D"font-family:&quot;Arial&=
quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_--

--_004_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_
Content-Type: image/png; name="image001.png"
Content-Description: image001.png
Content-Disposition: inline; filename="image001.png"; size=2824;
	creation-date="Sun, 04 Dec 2016 09:14:19 GMT";
	modification-date="Sun, 04 Dec 2016 09:14:19 GMT"
Content-ID: <[email protected]>
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAEAAAAAfCAYAAABXscv8AAAAAXNSR0IArs4c6QAAAAlwSFlzAAAO
xAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAAqISURBVGhD
7Vh7cFTVGf/uuffuvdnNZrNRSHnUGqDVVNBAK0p8MJZq7dBRa6FacRSqONYiop2x02qzLqPjHx0H
xbZqQTtWbKvtTJXWTnW0rVKDJjamEllBAQkEAsmSfeTu3tfe29+32cCShwSHic7YM/PNedzz+n7f
81wlHo/TZ7kon2Xmmff/A3AsDYjV1dWSrqs67fdPCVPPkpaUfaw1g983NTae9HLf/op4Ytfesa4Z
73kjakCsrnEmacpSImsB+flpRKZmU9jbbZpdv5xd2TrRzzy9uF28MNplN8+dq51VNWFNtJBfTJKo
vKfh1LdkK3XLzxKpLePN4LHOOwqAWLJao8bz7iPZX0mhgEp2mqjgYg+XfEkhVw3MMDUxI0fe9zae
0/diNNd76wVbprw/9JCGSO1doYkTf5Du3I5PPkmhivMl1/hzrF6bFU9Y+WNdajy/HwYg9rmFEaqv
eJ6qq+ZT9iBRJoV7mCCHSAIJAGFZ5NsmObJNbqTiG44Ivb55zu7L57V9YfPgpesWLY92pHtWpHt7
aXsmAwA9oj4AGQ1N1zPm1djkN+PJ4LHOKgIQ66iXpdODf/JrJs6nPpirB2Z9XNxHLaEWEuqyrXyf
3FSevCplAvzoX1sbPzjn7OYZH/CMzmx6mVIViX7Q3UkwmYG1XGyXhE+r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NGv+TqrEnKjn4wP1hUALYv+Xuy8tsRCgUySnxh9TchaTYP
Nu3CMtLUqeSWQiKup+gALi2xyp5QAIZmkugz8kdllyMAAH9SV/9CfMu2v8dEeAJUu45sp9qv8POq
EJ0/abN2KwsXrWv3SelOdVHKKvkEDW7Cyu6hO65bEl+92qed740otUdnyUmpQnsQucbh747hkCZL
l3U1tk6e0nx26U3+cYV+fOtGNoG8AeOF10i8AmMmpsNlwfKm0x/flV6aRSTYbZS9lRgAO/NQkfmP
Kq67wcu490gBpboYpVlHYRJaVA3msxYnYJwDjFtR8E4f7p/FqG6LNnYeuiarR5V0uot68vzHCHcN
wEQyqR7KOUclOyNxcXNCSj7V4G6QgtoKyhzRAg8hUfg+x/LxBYBduzT4dGUHyI7M80bz27S139NF
jUR7+/GjlGXNM4NQmJTxSLy7OTUW0QkhHsGrcEXpwVRcMrCXf9JY1p/IOYrr+8/IyPqK0mAnZiRt
+M23RjukX5Y3OMm+2/crYQWhgCiEt0nmQJLyAc6zx1SWtImtz892nw1MCn9XpPA8VhQK4AlT6KEn
x7TBCZykHJSyq61eMUkI+VLPMg9C+k3xXa9wwjFiuei1h99ZO/26ha6sxqA6UynfnyDLuTve/SJn
ZmMukind5PRk0wFVuhR/lSzjoPm7xRcvvS/RzMnd+BVlScsf2JPdEGu8NUxXTO0vhYqPvMHKHb/l
p+VLscamYLx5Nb+2jrtclgjiX3nwpk2NuZBp7XJnt8yzEpvHl3m+9OEoEG9+OIvc87gY+bjMlx9y
QXMQ+TW/cD+Z8j/p0mvXbU4bEAAAAABJRU5ErkJggg==

--_004_SN2PR05MB2669629316C52A9441CCD868D2800SN2PR05MB2669namp_--


--===============2809014549762052828==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Spread-users mailing list
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users

--===============2809014549762052828==--