ejabberd - Comments for "Pre-Deerpark HTTP Polling Failure" https://www.ejabberd.im/node/328 en Great job! https://www.ejabberd.im/node/328#comment-669 <p>Looks like you nailed the problem.</p> <p>We're now running the latest OTP and ejabberd with your patch under an ancient version of FreeBSD -- http-polling works across the browser versions.</p> Sun, 31 Jul 2005 19:47:35 +0000 James Bowery comment 669 at https://www.ejabberd.im Here's a completely untested https://www.ejabberd.im/node/328#comment-666 <p>Here's a completely untested stab-in-the-dark patch. It's strange that these functions sometimes return a <code>bad_request</code> atom, but no code tests for that return value... maybe someone with more time and expertise knows why.</p> <pre>--- orig/src/web/ejabberd_http.erl +++ mod/src/web/ejabberd_http.erl @@ -672,8 +672,8 @@ {R ++ H, Trail2} end. -get_req("\r\n\r\n" ++ _) -&gt; - bad_request; +%%get_req("\r\n\r\n" ++ _) -&gt; +%% bad_request; get_req("\r\n" ++ Data) -&gt; get_req(Data); get_req(Data) -&gt; </pre> Fri, 29 Jul 2005 19:07:32 +0000 legoscia comment 666 at https://www.ejabberd.im