<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Muziboo Development Blog &#187; paypal</title>
	<atom:link href="http://devblog.muziboo.com/category/paypal/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.muziboo.com</link>
	<description>Muziboo development stories. Mostly set in ruby land</description>
	<lastBuildDate>Thu, 26 Nov 2009 05:20:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gateway timeout with haproxy on long requests</title>
		<link>http://devblog.muziboo.com/2008/06/14/gateway-timeout-with-haproxy-on-long-requests/</link>
		<comments>http://devblog.muziboo.com/2008/06/14/gateway-timeout-with-haproxy-on-long-requests/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 06:45:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[paypal]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[rubyworks]]></category>
		<category><![CDATA[gateway timeout]]></category>
		<category><![CDATA[haproxy]]></category>
		<category><![CDATA[paypal soap api]]></category>

		<guid isPermaLink="false">http://prateekdayal.net/tech/?p=13</guid>
		<description><![CDATA[I was trying to make a payment using PayPal SOAP API today and on a standard rubyworks installation (Apache &#8211;&#62; HAProxy &#8211;&#62; Mongrels), I was getting a Gateway Timeout Error. On checking the logs, I found out that the payment was in fact going through and rails was generating the thanks page too. My first [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to make a payment using <a href="http://www.paypaldeveloper.com/pdn/board?board.id=api">PayPal SOAP API</a> today and on a standard <a href="http://rubyworks.rubyforge.org/">rubyworks</a> installation (Apache &#8211;&gt; HAProxy &#8211;&gt; Mongrels), I was getting a Gateway Timeout Error. On checking the logs, I found out that the payment was in fact going through and rails was generating the thanks page too. My first doubt was that mod_proxy was timing out while waiting for a response. I tried to increase ProxyTimeout to 120 secs but it had not effect. I then tried to send the request directly to port 3001 (haproxy port in rubyworks) and I still saw the timeout happening. On sending the request to a mongrel directly (I tried on port 3002), the payment went smoothly and the thanks page was rendered. I tried to browse around and found <a href="http://rubyworks.rubyforge.org/manual/haproxy.html">this</a> page where they mention that by default, if mongrel does not respond back in 30 secs, haproxy times it out.</p>
<p>The setting can be increased by simply changing the variable <code>srvtimeout </code>to a larger number (say 120000 for 120 secs) in the configuration file <code>/etc/rails/haproxy.conf</code></p>
]]></content:encoded>
			<wfw:commentRss>http://devblog.muziboo.com/2008/06/14/gateway-timeout-with-haproxy-on-long-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
