<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/diameter/test, branch bjorn/contributing</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>Update copyright-year</title>
<updated>2016-12-07T12:15:31+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2016-12-07T12:15:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=3eddb0f762de248d3230b38bc9d478bfbc8e7331'/>
<id>3eddb0f762de248d3230b38bc9d478bfbc8e7331</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'anders/diameter/19.1/OTP-13838' into maint</title>
<updated>2016-09-12T20:31:33+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-09-12T20:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=58cc6bb63216d66975b8b9a895c0596925a8571d'/>
<id>58cc6bb63216d66975b8b9a895c0596925a8571d</id>
<content type='text'>
* anders/diameter/19.1/OTP-13838:
  vsn -&gt; 1.12.1
  Update appup for 19.1
  Fix xmllint errors in documentation
  Remove documentation overkill
  Don't run traffic tests in parallel when {string_decode, true}
  Remove copyright from generated dictionary modules
  Fix dictionary function typo
  Fix dictionary typo in relay example
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* anders/diameter/19.1/OTP-13838:
  vsn -&gt; 1.12.1
  Update appup for 19.1
  Fix xmllint errors in documentation
  Remove documentation overkill
  Don't run traffic tests in parallel when {string_decode, true}
  Remove copyright from generated dictionary modules
  Fix dictionary function typo
  Fix dictionary typo in relay example
</pre>
</div>
</content>
</entry>
<entry>
<title>diameter: Do not test SCTP on sparc-sun-solaris2.10</title>
<updated>2016-09-10T11:48:56+00:00</updated>
<author>
<name>Ingela Anderton Andin</name>
<email>ingela@erlang.org</email>
</author>
<published>2016-09-05T15:50:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=736ce20a34ebe66fc2adc97e1f991de3f825e6e6'/>
<id>736ce20a34ebe66fc2adc97e1f991de3f825e6e6</id>
<content type='text'>
The SCPT stack has a different behavior in solaris2.10 then in later versions
and linux. Diameter implementation does not support this behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The SCPT stack has a different behavior in solaris2.10 then in later versions
and linux. Diameter implementation does not support this behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't run traffic tests in parallel when {string_decode, true}</title>
<updated>2016-08-26T07:18:23+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-08-25T16:28:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=ea1c01bd1be507de3762f4f088f8ca8664f3950b'/>
<id>ea1c01bd1be507de3762f4f088f8ca8664f3950b</id>
<content type='text'>
Since the large strings copied between processes cause testcases to fail
randomly.

Option string_decode was added in commit 1590920c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the large strings copied between processes cause testcases to fail
randomly.

Option string_decode was added in commit 1590920c.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'anders/diameter/rand/OTP-13664'</title>
<updated>2016-06-12T07:09:59+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-06-12T07:09:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c2861de76ca39217a0cf4fc284f8eeaf3f7d2477'/>
<id>c2861de76ca39217a0cf4fc284f8eeaf3f7d2477</id>
<content type='text'>
* anders/diameter/rand/OTP-13664:
  Use rand(3) instead of random(3)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* anders/diameter/rand/OTP-13664:
  Use rand(3) instead of random(3)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix testsuite match blunder</title>
<updated>2016-06-11T18:46:09+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-06-11T18:31:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=010925dd108b560ed86d9e0d8f48beefd677728e'/>
<id>010925dd108b560ed86d9e0d8f48beefd677728e</id>
<content type='text'>
That missed comm_up when something like the following was received on
FreeBSD (for one):

  {sctp,#Port&lt;0.599&gt;,
        {127,0,0,1},
        45455,
        {[{sctp_sndrcvinfo,0,0,[],0,0,0,0,145060462,3}],
         {sctp_assoc_change,comm_up,0,10,10,3}}}
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That missed comm_up when something like the following was received on
FreeBSD (for one):

  {sctp,#Port&lt;0.599&gt;,
        {127,0,0,1},
        45455,
        {[{sctp_sndrcvinfo,0,0,[],0,0,0,0,145060462,3}],
         {sctp_assoc_change,comm_up,0,10,10,3}}}
</pre>
</div>
</content>
</entry>
<entry>
<title>Use rand(3) instead of random(3)</title>
<updated>2016-06-11T16:49:42+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-06-11T10:42:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=c980e489d02417e1144d28958fe9abd4017f72a4'/>
<id>c980e489d02417e1144d28958fe9abd4017f72a4</id>
<content type='text'>
The latter is deprecated in OTP 19.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latter is deprecated in OTP 19.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix leaking transports in traffic/relay suites</title>
<updated>2016-05-30T06:56:15+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-05-24T12:58:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=80dc4f14b21cf316a8000f91cd77b1f0653afa7c'/>
<id>80dc4f14b21cf316a8000f91cd77b1f0653afa7c</id>
<content type='text'>
Listening transports weren't removed, which diameter_reg:subs/0 revealed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Listening transports weren't removed, which diameter_reg:subs/0 revealed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Close listening sockets at transport removal</title>
<updated>2016-05-30T06:56:15+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-05-18T12:39:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=5ca5fb71695ccdf7267007b8405f7a13497a2f17'/>
<id>5ca5fb71695ccdf7267007b8405f7a13497a2f17</id>
<content type='text'>
The transport interface documented in diameter_transport(3) is used to
start/stop accepting/connecting transport processes: they're started
with a function call, and told to die with their parent process. In the
accepting case, both diameter_tcp and diameter_sctp start a listening
process when the first accepting transport is started. However, there's
no way for a listening process to find out that that it should stop
listening when transport configuration is removed.

Both diameter_tcp and diameter_sctp have used a timer to terminate the
listening process after all existing accepting processes have died as a
consequence of transport removal. The problem with this is that nothing
stops a new client from connecting before this, and also that no new
transport can succeed in opening the same listening port (eg.
reconfiguration) until the old listener dies.

This commit solves the problem by adding diameter_reg:subscribe/2, to
allow callers to subscribe to messages about added/removed associations.
A call to diameter:add_transport/2 results in a new child process that
registers a term that a listening process subscribes to. Transport
removal results in the death of the child, and the resulting
notification to the listener causes the latter to close its socket and
terminate.

This is still an internal interface, but the subscription mechanism
should probably be made external  (eg. a diameter:subscribe/1 that can
be used to subscribe to specified messages), so that transport modules
other than diameter's own can make use of it. There is no support for
soft upgrade.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The transport interface documented in diameter_transport(3) is used to
start/stop accepting/connecting transport processes: they're started
with a function call, and told to die with their parent process. In the
accepting case, both diameter_tcp and diameter_sctp start a listening
process when the first accepting transport is started. However, there's
no way for a listening process to find out that that it should stop
listening when transport configuration is removed.

Both diameter_tcp and diameter_sctp have used a timer to terminate the
listening process after all existing accepting processes have died as a
consequence of transport removal. The problem with this is that nothing
stops a new client from connecting before this, and also that no new
transport can succeed in opening the same listening port (eg.
reconfiguration) until the old listener dies.

This commit solves the problem by adding diameter_reg:subscribe/2, to
allow callers to subscribe to messages about added/removed associations.
A call to diameter:add_transport/2 results in a new child process that
registers a term that a listening process subscribes to. Transport
removal results in the death of the child, and the resulting
notification to the listener causes the latter to close its socket and
terminate.

This is still an internal interface, but the subscription mechanism
should probably be made external  (eg. a diameter:subscribe/1 that can
be used to subscribe to specified messages), so that transport modules
other than diameter's own can make use of it. There is no support for
soft upgrade.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename diameter_reg:del -&gt; remove</title>
<updated>2016-05-30T06:54:41+00:00</updated>
<author>
<name>Anders Svensson</name>
<email>anders@erlang.org</email>
</author>
<published>2016-05-24T13:12:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=f83a883cbf448d2136fe716c5a318915d1e6eecc'/>
<id>f83a883cbf448d2136fe716c5a318915d1e6eecc</id>
<content type='text'>
Letters are cheap.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Letters are cheap.
</pre>
</div>
</content>
</entry>
</feed>
