Age | Commit message (Collapse) | Author |
|
|
|
Add the {active,N} socket option, where N is an integer in the range
-32768..32767, to allow a caller to specify the number of data messages to
be delivered to the controlling process. Once the socket's delivered
message count either reaches 0 or is explicitly set to 0 with
inet:setopts/2 or by including {active,0} as an option when the socket is
created, the socket transitions to passive ({active, false}) mode and the
socket's controlling process receives a message to inform it of the
transition. TCP sockets receive {tcp_passive,Socket}, UDP sockets receive
{udp_passive,Socket} and SCTP sockets receive {sctp_passive,Socket}.
The socket's delivered message counter defaults to 0, but it can be set
using {active,N} via any gen_tcp, gen_udp, or gen_sctp function that takes
socket options as arguments, or via inet:setopts/2. New N values are added
to the socket's current counter value, and negative numbers can be used to
reduce the counter value. Specifying a number that would cause the socket's
counter value to go above 32767 causes an einval error. If a negative
number is specified such that the counter value would become negative, the
socket's counter value is set to 0 and the socket transitions to passive
mode. If the counter value is already 0 and inet:setopts(Socket,
[{active,0}]) is specified, the counter value remains at 0 but the
appropriate passive mode transition message is generated for the socket.
This commit contains a modified preloaded prim_inet.beam due to changes in
prim_inet.erl.
Add tests for {active,N} mode for TCP, UDP, and SCTP sockets.
Add documentation for {active,N} mode for inet, gen_tcp, gen_udp, and
gen_sctp.
|
|
* bjorn/erts/erlc-rewrite/OTP-11248:
Teach erlc to handle UTF-8 file names
|
|
The 'erlc' program passes options to the 'erl' program using
the '-s' option. The '-s' option causes all options to be converted
to atoms, which implies that UTF-8 file names may not be given on
the command line.
We could solve just the UTF-8 problem by using '-run' and change
the erl_compile module to expect strings instead of atoms, but since
that is an incompatible change, we should take the opportunity to
make more incompatible changes while we are at it.
Specifically, when 'erlc' was first written, there was no way to pass
command line arguments starting with '-' to Erlang, so 'erlc' did all
parsing of arguments and translated options to atoms starting with a
'@' character (for example, -I was translated to @i). Since then,
the '-extra' option has been introduced which allows us to pass
anything to Erlang at the end of the command line.
Therefore, while at it, do the minimum of necessary command line
parsing in the 'erlc' program (e.g. the '-smp' option), passing the
command line essentially unchanged to 'erl' using the '-extra' option,
and rewrite the option parsing in Erlang.
|
|
|
|
|
|
|
|
The R16B02 release
Conflicts:
lib/sasl/vsn.mk
|
|
|
|
|
|
* fredrik/sfwi-r15b03/OTP-11164:
erts: reorganization of functions to r15b03 standards
erts: bumped version number
erts: Add the +sfwi system flag
|
|
|
|
|
|
+sfwi Interval
Set scheduler forced wakeup interval. All run queues will be scanned
each Interval milliseconds. While there are sleeping schedulers in
the system, one scheduler will be woken for each non-empty run queue
found. An Interval of zero disables this feature, which also is the
default.
This feature has been introduced as a temporary workaround for lengthy
executing native code, and native code that do not bump reductions
properly in OTP. When these bugs have be fixed the +sfwi flag will
be removed.
Conflicts:
erts/doc/src/erl.xml
erts/etc/common/erlexec.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* anders/diameter/R16B02_release/OTP-11322:
vsn -> 1.4.3
Update appup for diameter-1.4.3 in R16B02
|
|
|
|
* egil/fix-megaco-appup:
megaco: Update appup file
|
|
|
|
|
|
|
|
* maint:
Correct documentation of predefined types
crypto: Add ticket for 5d8a13bb6a180e0a
|
|
* hb/erts/refman_corrections/OTP-11321:
Correct documentation of predefined types
|
|
The documentation of predefined types has been corrected
Thanks to Kostis Sagonas.
|
|
OTP-11320
|
|
|
|
* peppe/common_test/init_stop_problem:
Make builtin hook respond to init:stop
OTP-11175
|
|
|
|
|
|
* peppe/common_test/misc_r16b02_docs:
Add misc documentation
OTP-11272
OTP-11263
OTP-11244
OTP-11238
OTP-11176
|
|
|
|
|
|
* vinoski/sv/fix-sched-stats-disable/OTP-11317:
fix system_flag(scheduling_statistics,disable)
|
|
Conflicts:
erts/preloaded/ebin/erlang.beam
|
|
* jcomellas/jc-integer-to-binary2/OTP-11311:
Update preloaded
Fix incorrect values returned by integer_to_binary/2
|
|
|
|
* fenollp/parsetools/fix_unicode_leex/OTP-11313:
parsetools: added testcase for unicode
Missed a few similar calls
Fix leex module`s inability to build unicode-aware lexers.
|
|
Clear the "enabled" flag for scheduling statistics when disable is
specified.
|
|
|
|
|
|
If you have declared your .xrl file as utf-8 encoded
and that some of your definitions contain unicode
characters, either leex wouldn`t be able to lex them
or compilation of the .xrl file would crash.
|
|
|
|
* ia/prep-release/ssl:
ssl: Prepare for release
|