<div dir="ltr">Hi All,<div><br></div><div>I have this crazy issue that happens some times. Varnish returns 400 error response and does not sends the request to the backend.</div><div><br></div><div>I am using varnish for caching static elements along with the security module of varnish security.vcl. It has a LoadBalancer (haproxy) in front of it which also serves SSL termination. </div>

<div><br></div><div>Firstly, the error happens sometimes (not able to figure out any pattern). And once i happens I have to clear my browser cache to get rid of it, and after that it works usual.</div><div><br></div><div>

Secondly, there is a LOST HEADER  c COOKIE : in the logs.  But I am unable to figure out what is the issue and how to resolve it.</div><div><br></div><div><br></div><div><div><font face="courier new, monospace">   0 CLI          - Rd ping</font></div>

<div><font face="courier new, monospace">    0 CLI          - Wr 200 19 PONG 1396541072 1.0</font></div><div><font face="courier new, monospace">   11 SessionOpen  c 10.151.90.119 37020 :3002</font></div><div><font face="courier new, monospace">   11 ReqStart     c 10.151.90.119 37020 1943004300</font></div>

<div><font face="courier new, monospace">   11 RxRequest    c GET</font></div><div><font face="courier new, monospace">   11 RxURL        c /</font></div><div><font face="courier new, monospace">   11 RxProtocol   c HTTP/1.1</font></div>

<div><font face="courier new, monospace">   11 RxHeader     c Host: <a href="http://mywebsite.com">mywebsite.com</a></font></div><div><font face="courier new, monospace">   11 RxHeader     c User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0</font></div>

<div><font face="courier new, monospace">   11 RxHeader     c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</font></div><div><font face="courier new, monospace">   11 RxHeader     c Accept-Language: en-US,en;q=0.5</font></div>

<div><font face="courier new, monospace">   11 RxHeader     c Accept-Encoding: gzip, deflate</font></div><div><font face="courier new, monospace">   <span style="background-color:rgb(241,194,50)">11 LostHeader   c Cookie: </span>optimizelySegments=%7B%22536291792%22%3A%22direct%22%2C%22545421312%22%3A%22ff%22%2C%22549961054%22%3A%22false%22%7D; optimizelyEndUserId=oeu1395411026003r0.796982480060219; optimizelyBuckets=%7B%7D; __zlcmid=NydchMMELhVZZz; gs_u_GSN-985801-P=133</font></div>

<div><font face="courier new, monospace">   11 HttpGarbage  c GET</font></div><div><font face="courier new, monospace">  <span style="background-color:rgb(241,194,50)"> 11 VCL_call     c error deliver</span></font></div>
<div>
<font face="courier new, monospace" style="background-color:rgb(241,194,50)">   11 VCL_call     c deliver deliver</font></div><div><font face="courier new, monospace" style="background-color:rgb(241,194,50)">   11 TxProtocol   c HTTP/1.1</font></div>

<div><font face="courier new, monospace" style="background-color:rgb(241,194,50)">   11 TxStatus     c 400</font></div><div><font face="courier new, monospace" style="background-color:rgb(241,194,50)">   11 TxResponse   c Bad Request</font></div>

<div><font face="courier new, monospace">   11 TxHeader     c Accept-Ranges: bytes</font></div><div><font face="courier new, monospace">   11 TxHeader     c Age: 0</font></div><div><font face="courier new, monospace">   11 TxHeader     c Date: Thu, 03 Apr 2014 16:04:34 GMT</font></div>

<div><font face="courier new, monospace">   11 TxHeader     c Content-Length: 409</font></div><div><font face="courier new, monospace">   11 TxHeader     c Content-Type: text/html; charset=utf-8</font></div><div><font face="courier new, monospace">   11 TxHeader     c X-Cache: MISS</font></div>

<div><font face="courier new, monospace">   11 Length       c 409</font></div><div><font face="courier new, monospace">   11 ReqEnd       c 1943004300 1396541074.854442120 1396541074.854650736 0.000062227 0.000128031 0.000080585</font></div>

<div><font face="courier new, monospace">   11 SessionClose c error</font></div><div><font face="courier new, monospace">   11 StatSess     c 10.151.90.119 37020 0 1 1 0 0 0 171 409</font></div><div><font face="courier new, monospace">    0 CLI          - Rd ping</font></div>

<div><font face="courier new, monospace">    0 CLI          - Wr 200 19 PONG 1396541075 1.0</font></div></div><div><br></div><div><br></div><div>Looking for any help to figure out the issue and suggestions to resolve it.</div>

<div><br></div><div><br></div><div>Thanks</div><div><div><div dir="ltr"><div><b>--</b><br></div><div><b>Puneet Arora, Lead Developer</b></div><div><b><br></b></div><div><div style="color:rgb(136,136,136)"><a href="http://insticator.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://insticator.com/public/01209213330714/webimages/logo.png"></a><br>

</div><div style="color:rgb(136,136,136)"><p style="color:rgb(34,34,34)">______________________________________________________________</p><p style="color:rgb(34,34,34)"><b><font color="#000000" size="1">Insticator featured as the top Super Bowl companion app! - CNET<br>

</font></b><b><font size="1">Insticator is the #1 gamification tool the competition has missed! - Business 2 Community</font><br></b></p><p style="color:rgb(34,34,34)"><b>Recent press: <a href="http://cnettv.cnet.com/tech-tips-enjoying-big-game/9742-1_53-50161660.html" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.toledomedia.com/images/logo_cnet.png"></a>  </b><a href="http://www.business2community.com/marketing/5-gamification-tools-competition-might-missed-0767715" style="color:rgb(17,85,204)" target="_blank"><img src="http://l.yimg.com/qz/partner/business2community18.jpg"></a><b><font color="#000000" size="1"><br>

</font></b></p><p style="color:rgb(34,34,34)"><b><font color="#000000">Let's get social:</font></b><font color="#6fa8dc"><a href="https://facebook.com/insticator" style="color:rgb(17,85,204)" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/picons-social/57/06-facebook-16.png"></a> <a href="http://twitter.com/insticator_inc" style="color:rgb(17,85,204)" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/picons-social/57/03-twitter-16.png"></a> <a href="http://insticator.tumblr.com/" style="color:rgb(17,85,204)" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/picons-social/57/15-tumblr-16.png"></a> <a href="http://instagram.com/insticator" style="color:rgb(17,85,204)" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/picons-social/57/38-instagram-16.png"></a> <a href="http://pinterest.com/insticator" style="color:rgb(17,85,204)" target="_blank"><img src="https://cdn3.iconfinder.com/data/icons/peelicons-vol-1/50/Pinterest-16.png"></a></font></p>

</div></div></div></div>
</div></div>