Hello,<br><br>About bugs of varnishncsa in tickets  <a href="http://varnish-cache.org/ticket/633" title="defect: 
varnishncsa segfaults (assigned)" target="_blank">#633</a> and <a href="http://varnish-cache.org/ticket/685" title="defect: Logging 
non-HTTP connections as null (assigned)" target="_blank">#685</a>  I have modified varnishncsa.c,<br><br>It ignores duplicated ReqEnd and dump bogus in stderr żmay be changed to system error log???<br><ol><li>Get XID from ReqEnd</li>
<li>If XID == 0 then ignore ReqEnd</li><li>If
 XID != = but bogus == 1 then print bogus request in standard error.</li></ol><br>It works me ok in Solaris 10, and avoid coredumps.<br><br><br>Thank you<br><br><br><br><div class="gmail_quote">2010/5/31 Jorge Díaz <span dir="ltr"><<a href="mailto:jdzstz@gmail.com">jdzstz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I am testing Varnish  (<a href="http://varnish-cache.org/changeset/4576" title="Tell 
FlexeLint 
that we ignore returnvalues on purpose." target="_blank">r4576</a>) in 
Solaris 10 5.10 
Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T2000. <br>We are using now Apache with mod_cache and we are planning to switch to Varnish, I have followed
 the instructions in <a href="http://letsgetdugg.com/2009/12/04/varnish-on-solaris/" target="_blank"><span> </span>http://letsgetdugg.com/2009/12/04/varnish-on-solaris/</a><br><br>After fixing the LINGER problem (ticket  <a href="http://varnish-cache.org/ticket/649" title="defect: Varnish 
LINGER
 crash on Solaris (new)" target="_blank">#649</a> ), varnish seems to work ok, we have also make some little tests in production enviroment, switching to Varnish during 3 hours in one of our eight Apache Servers.<br><br>

The only problem that is stopping us to making the change are some strange behaviour with varnishncsa. <br>Original varnishncsa.c version generate coredumps and fixed file with  <a href="http://varnish-cache.org/ticket/685" title="defect: Logging non-HTTP connections as null (assigned)" target="_blank">#685</a> workaround generates a lot of bogus requests.<br>

<br>After some investigations I have found that the root of the problems is a duplicated ReqEnd record when there is a SessionClose EOF, I have filled the bug in new ticket <a href="http://varnish-cache.org/ticket/709" title="defect: After 
SessionClose c EOF there is a second  ReqEnd       c 0 (new)" target="_blank">#709</a>  The duplicated ReqEnd has no XID<br><br>Tickets  <a href="http://varnish-cache.org/ticket/633" title="defect: varnishncsa segfaults (assigned)" target="_blank">#633</a> and <a href="http://varnish-cache.org/ticket/685" title="defect: Logging non-HTTP connections as null (assigned)" target="_blank">#685</a>  they are almost the same. I think it would be nice to control the bogus requests:<br>

<ol><li>Get XID from ReqEnd</li><li>If XID == 0 then ignore ReqEnd</li><li>If XID != = but bogus == 1 then print bogus request in standard error.</li></ol>I attach to the mail two varnishncsa.c fixes:<br><ol><li>using workaround of #685  and adding extra logging</li>

<li>retrieving xid and testing "if (!lp->bogus && lp->xid > 0)" and adding extra logging</li></ol>I have to change the extra logging to stderr.<br><br><br><b>I need help with <a href="http://varnish-cache.org/ticket/709" title="defect: After 
SessionClose c EOF there is a second  ReqEnd       c 0 (new)" target="_blank">#709</a> , somebody has any clue about SessionClose EOF problem?? This issue is reported also in varnish-misc list: <br><a href="http://lists.varnish-cache.org/pipermail/varnish-misc/2009-December/003395.html" target="_blank">http://lists.varnish-cache.org/pipermail/varnish-misc/2009-December/003395.html</a><br>

</b><br>I attach my preproduction logs (with a BOGUS error and a duplicated ReqEnd) and my modified varnishncsa:<br><br><span style="font-family: courier new,monospace;">    7 TxHeader     c X-backend: prepro</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    7 ReqEnd       c 1937859944 1275326684.354095459 1275326684.376112938 0.000319004 0.021736622 0.000280857</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    7 SessionClose c EOF</span><br style="font-family: courier new,monospace;">

<span style="color: rgb(255, 0, 0); font-family: courier new,monospace;">    7 ReqEnd       c 0 1275326684.386904716 1275326684.386904716 0.010791779 0.000000000 0.000000000</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    7 StatSess     c 212.170.156.253 31325 0 1 1 0 0 1 288 0</span><br><br>Thank you<br>
</blockquote></div><br>