<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Proper timeout handling with Apache HttpClient</title>
	<atom:link href="http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/feed/" rel="self" type="application/rss+xml" />
	<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/</link>
	<description>Less of a story, more of a brain dump</description>
	<lastBuildDate>Sat, 07 Jan 2012 05:54:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: subdigit</title>
		<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/comment-page-1/#comment-592</link>
		<dc:creator>subdigit</dc:creator>
		<pubDate>Wed, 26 Aug 2009 18:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://brian.olore.net/?p=86#comment-592</guid>
		<description>Ah, all those wrappers.  Ok.  Added them to my code.  I was just catching a generic Exception before, but having the specific exception can be useful.</description>
		<content:encoded><![CDATA[<p>Ah, all those wrappers.  Ok.  Added them to my code.  I was just catching a generic Exception before, but having the specific exception can be useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/comment-page-1/#comment-591</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://brian.olore.net/?p=86#comment-591</guid>
		<description>&lt;a href=&quot;http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/ConnectTimeoutException.html&quot; rel=&quot;nofollow&quot;&gt;org.apache.commons.httpclient.ConnectTimeoutException&lt;/a&gt;
and
&lt;a href=&quot;http://java.sun.com/j2se/1.4.2/docs/api/java/net/SocketTimeoutException.html&quot; rel=&quot;nofollow&quot;&gt;java.net.SocketTimeoutException&lt;/a&gt;

The SocketTimeoutException is thrown by HttpMethodBase on things like getResponseStreamAsBody() which throws an IOException which wraps an InterruptedException which wraps a SocketTimeoutException. Simple right?  :)

More information on &lt;a href=&quot;http://hc.apache.org/httpclient-3.x/exception-handling.html&quot; rel=&quot;nofollow&quot;&gt;exception handling here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/ConnectTimeoutException.html" rel="nofollow">org.apache.commons.httpclient.ConnectTimeoutException</a><br />
and<br />
<a href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/SocketTimeoutException.html" rel="nofollow">java.net.SocketTimeoutException</a></p>
<p>The SocketTimeoutException is thrown by HttpMethodBase on things like getResponseStreamAsBody() which throws an IOException which wraps an InterruptedException which wraps a SocketTimeoutException. Simple right?  <img src='http://brian.olore.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>More information on <a href="http://hc.apache.org/httpclient-3.x/exception-handling.html" rel="nofollow">exception handling here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/comment-page-1/#comment-590</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://brian.olore.net/?p=86#comment-590</guid>
		<description>Yep, both setting them on the connection manager &amp; on the httpclient should have same effect. I think there are a few more settings you can do within the connection manager and/or it&#039;s good for reuse - building multiple httpclient objects without needing to re-specify all the settings.</description>
		<content:encoded><![CDATA[<p>Yep, both setting them on the connection manager &amp; on the httpclient should have same effect. I think there are a few more settings you can do within the connection manager and/or it&#8217;s good for reuse &#8211; building multiple httpclient objects without needing to re-specify all the settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subdigit</title>
		<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/comment-page-1/#comment-589</link>
		<dc:creator>subdigit</dc:creator>
		<pubDate>Mon, 24 Aug 2009 20:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://brian.olore.net/?p=86#comment-589</guid>
		<description>Oh, and which packages are the ConnectionTimeoutException and SocketTimeoutException from?  And what actually throws them?  I can only seem to find that an HttpException gets thrown from within the .executeMethod.</description>
		<content:encoded><![CDATA[<p>Oh, and which packages are the ConnectionTimeoutException and SocketTimeoutException from?  And what actually throws them?  I can only seem to find that an HttpException gets thrown from within the .executeMethod.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subdigit</title>
		<link>http://brian.olore.net/wp/2009/08/apache-httpclient-timeout/comment-page-1/#comment-588</link>
		<dc:creator>subdigit</dc:creator>
		<pubDate>Mon, 24 Aug 2009 20:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://brian.olore.net/?p=86#comment-588</guid>
		<description>Dug through my old code.  Is setting the timeout at the HttpClient level as above:

httpClient.getParams().setParameter(&quot;http.connection-manager.timeout&quot;, poolTimeout);

the same thing as setting the timeout at the ConnectionManager level? 

connectionManager.getParams().setConnectionTimeout(poolTimeout);

Does the manager automatically pass the parameters to the client as it creates the client?</description>
		<content:encoded><![CDATA[<p>Dug through my old code.  Is setting the timeout at the HttpClient level as above:</p>
<p>httpClient.getParams().setParameter(&#8220;http.connection-manager.timeout&#8221;, poolTimeout);</p>
<p>the same thing as setting the timeout at the ConnectionManager level? </p>
<p>connectionManager.getParams().setConnectionTimeout(poolTimeout);</p>
<p>Does the manager automatically pass the parameters to the client as it creates the client?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

