summaryrefslogtreecommitdiffstats
path: root/archives/extend/attachments/20130820
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-08-29 12:39:49 +0200
committerLoïc Hoguin <[email protected]>2016-08-29 12:40:03 +0200
commitc807880f7ac73f813b2660ea81a00f7712a4e793 (patch)
treeba1d09e9b177f230665a80513b33fbd532000ce4 /archives/extend/attachments/20130820
parentb1df25a7d9cda697513650659b781b55b40898f8 (diff)
downloadninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz
ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2
ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip
Add old mailing list archives
Diffstat (limited to 'archives/extend/attachments/20130820')
-rw-r--r--archives/extend/attachments/20130820/b203ebe2/attachment.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/archives/extend/attachments/20130820/b203ebe2/attachment.html b/archives/extend/attachments/20130820/b203ebe2/attachment.html
new file mode 100644
index 00000000..43c2369f
--- /dev/null
+++ b/archives/extend/attachments/20130820/b203ebe2/attachment.html
@@ -0,0 +1,32 @@
+<tt>
+&lt;div&nbsp;dir=&quot;ltr&quot;&gt;This&nbsp;is&nbsp;exactly&nbsp;the&nbsp;sort&nbsp;of&nbsp;thing&nbsp;gen_event&nbsp;is&nbsp;for.&nbsp;I&nbsp;would&nbsp;make&nbsp;each&nbsp;server&nbsp;process&nbsp;register&nbsp;a&nbsp;handler&nbsp;at&nbsp;startup&nbsp;using&nbsp;gen_event:add_sup_handler()&nbsp;and&nbsp;then&nbsp;have&nbsp;the&nbsp;handle_event&nbsp;callback&nbsp;simply&nbsp;relay&nbsp;the&nbsp;event&nbsp;to&nbsp;the&nbsp;server&nbsp;processes.&nbsp;Yes,&nbsp;gproc&nbsp;can&nbsp;do&nbsp;this,&nbsp;but&nbsp;why&nbsp;incur&nbsp;its&nbsp;extra&nbsp;features&nbsp;and&nbsp;overhead?&lt;div&nbsp;class=&quot;gmail_extra&quot;&gt;<br>
+&lt;br&gt;&lt;br&gt;&lt;div&nbsp;class=&quot;gmail_quote&quot;&gt;On&nbsp;Sat,&nbsp;Aug&nbsp;17,&nbsp;2013&nbsp;at&nbsp;3:10&nbsp;AM,&nbsp;Lo�c&nbsp;Hoguin&nbsp;&lt;span&nbsp;dir=&quot;ltr&quot;&gt;&lt;&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&nbsp;target=&quot;_blank&quot;&gt;[email protected]&lt;/a&gt;&gt;&lt;/span&gt;&nbsp;wrote:&lt;br&gt;&lt;blockquote&nbsp;class=&quot;gmail_quote&quot;&nbsp;style=&quot;margin:0&nbsp;0&nbsp;0&nbsp;.8ex;border-left:1px&nbsp;#ccc&nbsp;solid;padding-left:1ex&quot;&gt;<br>
+&lt;div&nbsp;class=&quot;im&quot;&gt;On&nbsp;08/17/2013&nbsp;10:00&nbsp;AM,&nbsp;Bin&nbsp;Wang&nbsp;wrote:&lt;br&gt;<br>
+&lt;blockquote&nbsp;class=&quot;gmail_quote&quot;&nbsp;style=&quot;margin:0&nbsp;0&nbsp;0&nbsp;.8ex;border-left:1px&nbsp;#ccc&nbsp;solid;padding-left:1ex&quot;&gt;<br>
+Hi,&lt;br&gt;<br>
+&lt;br&gt;<br>
+I&#39;m&nbsp;new&nbsp;to&nbsp;ranch.&nbsp;In&nbsp;my&nbsp;application,&nbsp;I&nbsp;need&nbsp;to&nbsp;send&nbsp;some&nbsp;message&nbsp;to&lt;br&gt;<br>
+all&nbsp;connections.&nbsp;So&nbsp;I&#39;d&nbsp;like&nbsp;to&nbsp;know&nbsp;can&nbsp;I&nbsp;get&nbsp;all&nbsp;connections&nbsp;from&lt;br&gt;<br>
+ranch,&nbsp;so&nbsp;I&nbsp;could&nbsp;use&nbsp;Transport:send&nbsp;to&nbsp;send&nbsp;them,&nbsp;or&nbsp;I&nbsp;must&nbsp;manage&lt;br&gt;<br>
+all&nbsp;the&nbsp;created&nbsp;connections&nbsp;by&nbsp;myself?&nbsp;Or&nbsp;is&nbsp;there&nbsp;any&nbsp;other&nbsp;better&lt;br&gt;<br>
+way?&lt;br&gt;<br>
+&lt;/blockquote&gt;<br>
+&lt;br&gt;&lt;/div&gt;<br>
+The&nbsp;best&nbsp;way&nbsp;to&nbsp;do&nbsp;that&nbsp;is&nbsp;on&nbsp;your&nbsp;end,&nbsp;using&nbsp;gproc&nbsp;properties.&nbsp;When&nbsp;the&nbsp;connection&nbsp;is&nbsp;accepted,&nbsp;register&nbsp;the&nbsp;process&nbsp;with&nbsp;the&nbsp;property&nbsp;and&nbsp;use&nbsp;the&nbsp;property&nbsp;to&nbsp;send&nbsp;messages&nbsp;to&nbsp;all&nbsp;processes.&nbsp;You&nbsp;don&#39;t&nbsp;need&nbsp;to&nbsp;unregister&nbsp;when&nbsp;the&nbsp;connection&nbsp;ends,&nbsp;gproc&nbsp;does&nbsp;that&nbsp;automatically.&lt;br&gt;<br>
+<br>
+&lt;br&gt;<br>
+The&nbsp;hackish&nbsp;way&nbsp;to&nbsp;do&nbsp;that&nbsp;would&nbsp;be&nbsp;to&nbsp;call&nbsp;supervisor:which_children&nbsp;on&nbsp;the&nbsp;ranch_conns_sup&nbsp;supervisor&nbsp;of&nbsp;your&nbsp;listener,&nbsp;but&nbsp;that&nbsp;will&nbsp;slow&nbsp;down&nbsp;the&nbsp;accepting&nbsp;of&nbsp;new&nbsp;connections,&nbsp;so&nbsp;don&#39;t&nbsp;do&nbsp;this&nbsp;if&nbsp;you&nbsp;need&nbsp;high&nbsp;accept&nbsp;rates.&lt;span&nbsp;class=&quot;HOEnZb&quot;&gt;&lt;font&nbsp;color=&quot;#888888&quot;&gt;&lt;br&gt;<br>
+<br>
+&lt;br&gt;<br>
+--&nbsp;&lt;br&gt;<br>
+Lo�c&nbsp;Hoguin&lt;br&gt;<br>
+Erlang&nbsp;Cowboy&lt;br&gt;<br>
+Nine&nbsp;Nines&lt;br&gt;<br>
+&lt;a&nbsp;href=&quot;http://ninenines.eu&quot;&nbsp;target=&quot;_blank&quot;&gt;http://ninenines.eu&lt;/a&gt;&lt;/font&gt;&lt;/span&gt;&lt;div&nbsp;class=&quot;HOEnZb&quot;&gt;&lt;div&nbsp;class=&quot;h5&quot;&gt;&lt;br&gt;<br>
+______________________________&lt;u&gt;&lt;/u&gt;_________________&lt;br&gt;<br>
+erlang-questions&nbsp;mailing&nbsp;list&lt;br&gt;<br>
+&lt;a&nbsp;href=&quot;mailto:[email protected]&quot;&nbsp;target=&quot;_blank&quot;&gt;[email protected]&lt;/a&gt;&lt;br&gt;<br>
+&lt;a&nbsp;href=&quot;http://erlang.org/mailman/listinfo/erlang-questions&quot;&nbsp;target=&quot;_blank&quot;&gt;http://erlang.org/mailman/&lt;u&gt;&lt;/u&gt;listinfo/erlang-questions&lt;/a&gt;&lt;br&gt;<br>
+&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;<br>
+
+</tt>