<?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>Richard Rosenthals Dev Blog &#187; admin</title>
	<atom:link href="https://richardarosenthal.com/?author=1&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://richardarosenthal.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 07 Oct 2014 17:47:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>&#8220;Unable to send email.  The recipient&#8217;s public key is not available for encryption&#8221;</title>
		<link>https://richardarosenthal.com/?p=13</link>
		<comments>https://richardarosenthal.com/?p=13#comments</comments>
		<pubDate>Fri, 24 Jan 2014 23:41:39 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richardarosenthal.com/?p=13</guid>
		<description><![CDATA[A client was recently having this error in the &#8220;Mail App&#8221; on their android phone after setting up with our email.  I knew it wasn&#8217;t an issue with our server, but the timing was uncanny.  This error prevented any outgoing mail, but only to certain domains, one of which was Gmail.  Eventually, I found that &#8230; <a href="https://richardarosenthal.com/?p=13" class="more-link">Continue reading <span class="screen-reader-text">&#8220;Unable to send email.  The recipient&#8217;s public key is not available for encryption&#8221;</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A client was recently having this error in the &#8220;Mail App&#8221; on their android phone after setting up with our email.  I knew it wasn&#8217;t an issue with our server, but the timing was uncanny.  This error prevented any outgoing mail, but only to certain domains, one of which was Gmail.  Eventually, I found that it goes back to an option to &#8220;encrypt all outgoing emails.&#8221;  To disable this option, and stop receiving the error  go to (in the Mail App):</p>
<p>settings-&gt;account settings-&gt;the account you&#8217;re having trouble with-&gt;more settings-&gt;security options</p>
<p>Simply uncheck &#8220;Encrypt all,&#8221; and everything should be peachy.</p>
<p>I suspect that setting up an email account using SSL or TLS may automatically turn this option on on some phones, though I&#8217;m not sure.</p>
]]></content:encoded>
			<wfw:commentRss>https://richardarosenthal.com/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Engineyard file timeouts</title>
		<link>https://richardarosenthal.com/?p=4</link>
		<comments>https://richardarosenthal.com/?p=4#comments</comments>
		<pubDate>Wed, 28 Aug 2013 09:11:41 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://richardarosenthal.com/?p=4</guid>
		<description><![CDATA[Symptoms: So basically, the problem was that during long video uploads, the browser would suddenly through up a &#8220;error code: ERR_CONNECTION_RESET.&#8221; The rails log was not showing anything unusual, even saying that it had sent a 200 (ok) response.  This was the most confusing part. Problem: So basically, the problem turned out to be that &#8230; <a href="https://richardarosenthal.com/?p=4" class="more-link">Continue reading <span class="screen-reader-text">Engineyard file timeouts</span> <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><strong>Symptoms:</strong></p>
<ul>
<li>So basically, the problem was that during long video uploads, the browser would suddenly through up a &#8220;error code: ERR_CONNECTION_RESET.&#8221;</li>
<li>The rails log was not showing anything unusual, even saying that it had sent a 200 (ok) response.  This was the most confusing part.</li>
</ul>
<p><strong>Problem:</strong></p>
<p>So basically, the problem turned out to be that *something* was timing out the the form submission ahead of rails, so that rails couldn&#8217;t get a chance to send out an error code.  This was especially elusive because of problems we had had with the paperclip gem earlier this month.    After much trial and error trying to find a timeout setting that the server would care about, I finally found that it was actually looking for the &#8220;lingering_time&#8221; (the way I found this was that I timed the time-out, and then simply searched <a href="http://nginx.org/en/docs/http/ngx_http_core_module.html" target="_blank">this page</a> for the time, ie 30s, assuming that it was still the default).</p>
<p>Additionally, it was restricting the size of the attachment, which is determined (at least in this case, I don&#8217;t know enough about nginx to say this is the only thing that controls it), by client_max_body_size.</p>
<p><strong>Solution:</strong><br />
The meat of the solution was to add</p>
<p>client_max_body_size 0;<br />
lingering_time 3600s;</p>
<p>to the appropriate nginx.conf file.  However, this not a great thing to do site wide, so if you use this solution, be sure to wrap it in as specific of a &#8220;location&#8221; as you can, eg.<br />
location /page_where_video_is_uploaded/ {<br />
client_max_body_size 0;<br />
lingering_time 3600s;</p>
<p>###Everything else required to make your pages load, depending on your configuration###<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://richardarosenthal.com/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
