<?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: Comet and Erlang, A perfect match</title>
	<atom:link href="http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/feed" rel="self" type="application/rss+xml" />
	<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html</link>
	<description>erlang 中文社区</description>
	<lastBuildDate>Tue, 09 Mar 2010 05:28:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jackyz</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-8545</link>
		<dc:creator>jackyz</dc:creator>
		<pubDate>Sun, 30 Nov 2008 13:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-8545</guid>
		<description>再次感谢 oscar 和 idisc 同学，这篇连同译文，稍后都会收集到 edoc 当中去。edoc 的作业，欠大了。</description>
		<content:encoded><![CDATA[<p>再次感谢 oscar 和 idisc 同学，这篇连同译文，稍后都会收集到 edoc 当中去。edoc 的作业，欠大了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: idisc</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-8047</link>
		<dc:creator>idisc</dc:creator>
		<pubDate>Wed, 19 Nov 2008 06:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-8047</guid>
		<description>idisc已经翻译&lt;a href=&quot;http://idisc.javaeye.com/blog/270076&quot; title=&quot;用Mochiweb打造百万级Comet应用&quot; rel=&quot;nofollow&quot;&gt;用Mochiweb打造百万级Comet应用&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>idisc已经翻译<a href="http://idisc.javaeye.com/blog/270076" title="用Mochiweb打造百万级Comet应用" rel="nofollow">用Mochiweb打造百万级Comet应用</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arbow</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-7666</link>
		<dc:creator>Arbow</dc:creator>
		<pubDate>Tue, 11 Nov 2008 03:23:34 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-7666</guid>
		<description>辛苦了。。。3 IN 1 的杀猫大荟萃，结合了libevent之后真的很惊人啊，百万连接，这时候带宽就成瓶颈了</description>
		<content:encoded><![CDATA[<p>辛苦了。。。3 IN 1 的杀猫大荟萃，结合了libevent之后真的很惊人啊，百万连接，这时候带宽就成瓶颈了</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheng</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-7199</link>
		<dc:creator>cheng</dc:creator>
		<pubDate>Wed, 29 Oct 2008 06:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-7199</guid>
		<description>嗯，非常好。通过hibernate以及min process heap size实现了进一步优化。
不知道作者下一步如何实现.</description>
		<content:encoded><![CDATA[<p>嗯，非常好。通过hibernate以及min process heap size实现了进一步优化。<br />
不知道作者下一步如何实现.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ro4tub</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-7167</link>
		<dc:creator>ro4tub</dc:creator>
		<pubDate>Tue, 28 Oct 2008 04:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-7167</guid>
		<description>中文翻译见:http://ro4tub.blogspot.com/2008/10/mochiwebcomet.html</description>
		<content:encoded><![CDATA[<p>中文翻译见:http://ro4tub.blogspot.com/2008/10/mochiwebcomet.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arbow</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-7019</link>
		<dc:creator>Arbow</dc:creator>
		<pubDate>Fri, 24 Oct 2008 04:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-7019</guid>
		<description>第二篇里面：
http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-2/
通过调用proc_lib:hibernate()，优化到8KB per user</description>
		<content:encoded><![CDATA[<p>第二篇里面：<br />
<a href="http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-2/" rel="nofollow">http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-2/</a><br />
通过调用proc_lib:hibernate()，优化到8KB per user</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: refactor</title>
		<link>http://erlang-china.org/misc/comet-and-erlang-a-perfect-match.html/comment-page-1#comment-6969</link>
		<dc:creator>refactor</dc:creator>
		<pubDate>Wed, 22 Oct 2008 02:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://erlang-china.org/?p=245#comment-6969</guid>
		<description>在MacOS下测试时报错econnrefused，mochi-urls.txt文件的url不能用localhost，得用127.0.0.1才行

在Erlang的邮件列表中找到了解释：
We have seen the same issue with CouchDB. What we found out
is that in our case localhost was not only resolving to 127.0.0.1 (IPv4)
but also ::1 (IPv6) and that http:request() would try to connect to
::1 where no service was listening.

Erlang的http模块缺省是打开IPv6模式的，当测试程序通过http模块连接localhost时，连接的地址是IPv6的::1地址，但是mochi没有在此监听，所以连接出错 {error,econnrefused}

解决方法两种：
1. 将mochi-urls.txt中的地址都改成127.0.0.1
2. 在http:request(...)运行之前调用http:set_options([{ipv6,disabled}])，关闭测试程序的IPv6模式，使用IPv4模式

理论上还有一种方法：让mochi服务器开启IPv6模式监听，这个我不知道这么开，
参考
You should teach Yaws to listen also on IPv6 - &quot;localhost&quot; resolves not
only to IPv4 127.0.0.1, but also to IPv6 ::1.

有点跑题了，呵呵</description>
		<content:encoded><![CDATA[<p>在MacOS下测试时报错econnrefused，mochi-urls.txt文件的url不能用localhost，得用127.0.0.1才行</p>
<p>在Erlang的邮件列表中找到了解释：<br />
We have seen the same issue with CouchDB. What we found out<br />
is that in our case localhost was not only resolving to 127.0.0.1 (IPv4)<br />
but also ::1 (IPv6) and that http:request() would try to connect to<br />
::1 where no service was listening.</p>
<p>Erlang的http模块缺省是打开IPv6模式的，当测试程序通过http模块连接localhost时，连接的地址是IPv6的::1地址，但是mochi没有在此监听，所以连接出错 {error,econnrefused}</p>
<p>解决方法两种：<br />
1. 将mochi-urls.txt中的地址都改成127.0.0.1<br />
2. 在http:request(&#8230;)运行之前调用http:set_options([{ipv6,disabled}])，关闭测试程序的IPv6模式，使用IPv4模式</p>
<p>理论上还有一种方法：让mochi服务器开启IPv6模式监听，这个我不知道这么开，<br />
参考<br />
You should teach Yaws to listen also on IPv6 &#8211; &#8220;localhost&#8221; resolves not<br />
only to IPv4 127.0.0.1, but also to IPv6 ::1.</p>
<p>有点跑题了，呵呵</p>
]]></content:encoded>
	</item>
</channel>
</rss>
