aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2010-09-11fix incorrect writev iovec buffer handling in eiSteve Vinoski
For platforms that support writev, ei uses iovec structures to be able to easily send noncontiguous data buffers. When sending large messages, the socket can of course block, in which case ei adjusts its iovecs to pick up where it left off when the socket becomes writeable again. Unfortunately the code that handled the case when the number of bytes written are less than the current iovec size adjusted only the iovec byte count but not the iovec data pointer, resulting in the same data being sent multiple times. The fix is trivial: in addition to subtracting the count of bytes already written from the current iovec's size, also increment the current iovec's data pointer by the number of bytes already written. Tested manually on Linux and verified to fix a problem detected in production with writing large binaries from a cnode to a regular node. No unit tests were added, however, because they use the local loopback which acts more like a pipe than an inter-host TCP connection. The closing of the TCP window on the receiving side and the resultant write blocking on the socket, which in turn caused the code that mishandled the iovecs to be exercised, could unfortunately not be readily duplicated in the erl_interface test suite.
2010-09-10Merge branch 'pan/binary-bif-valgrind-leak/OTP-8823' into devPatrik Nyblom
* pan/binary-bif-valgrind-leak/OTP-8823: Teach erl_bif_binary not leak memory by doing malloc(0)
2010-09-10Update preloaded modulesPatrik Nyblom
2010-09-10Update primary bootstrapPatrik Nyblom
2010-09-10Merge branch 'pan/added-autoimports/OTP-8763' into devPatrik Nyblom
* pan/added-autoimports/OTP-8763: Remove warnings for clashes with new autoimported BIFs Add testcase for autoimport and the erlang.xml doc consistency Correct erlang.xml regarding autoimports Add new autoimports for R14B
2010-09-10Remove warnings for clashes with new autoimported BIFsPatrik Nyblom
2010-09-10Add testcase for autoimport and the erlang.xml doc consistencyPatrik Nyblom
2010-09-10Correct erlang.xml regarding autoimportsPatrik Nyblom
2010-09-10Add new autoimports for R14BPatrik Nyblom
2010-09-10Merge branch 'peppe/common_test/dev/OTP-8805' into devLukas Larsson
* peppe/common_test/dev/OTP-8805: Fix problem with {fail,Result} from end_tc not being recognized Fix problem with prepared_tests tuple not being recognized Add verification terms to test suite Fix various test suite, makefile, and doc related problems Fix error in the repeat_until_* group property handling
2010-09-10Merge branch 'peppe/common_test/dev/OTP-8804' into devLukas Larsson
* peppe/common_test/dev/OTP-8804: Update the configuration data chapter in the user's guide
2010-09-10Merge branch 'peppe/common_test/dev/OTP-8803' into devLukas Larsson
* peppe/common_test/dev/OTP-8803: Add Andrey Pampukha to AUTHORS file
2010-09-10Merge branch 'peppe/common_test/dev/OTP-8753' into devLukas Larsson
* peppe/common_test/dev/OTP-8753: Fix problem with prepared_tests tuple not being recognized Add verification terms to test suite Fix various test suite, makefile, and doc related problems Fix error in the repeat_until_* group property handling Add test suite for groups with repeat property Add verification events to sequence group test suite Fix error in handling of sequence groups Fix error in test suite Fix problems with sequences and sub-groups Add test cases to sequence suite Fix error with group term in ct:run_test/1 Add test suite to examplify problem with nested groups in a sequence
2010-09-10Merge branch 'lukas/common_test/default_ct_config/OTP-8818' into devLukas Larsson
* lukas/common_test/default_ct_config/OTP-8818: OTP-8818: Fixed inconsistency in ct:start_interactive call
2010-09-10OTP-8818: Fixed inconsistency in ct:start_interactive callLukas Larsson
2010-09-10Merge branch 'kenneth/asn1/docfixes/OTP-8829' into devKenneth Lundin
* kenneth/asn1/docfixes/OTP-8829: Add warning about since long unsupported [{Cname,Val}] repr. of SEQUENCE/SET
2010-09-10Merge branch 'kenneth/gs-deprecate-warning/OTP-8824' into devKenneth Lundin
* kenneth/gs-deprecate-warning/OTP-8824: Add warning in documentation about that GS will be deprecated and removed from distribution soon
2010-09-10Merge branch 'kenneth/asn1/nested_extaddgroup/OTP-8797' into devKenneth Lundin
* kenneth/asn1/nested_extaddgroup/OTP-8797: Add support for ExtensionAdditionGroup notation in nested types as well Conflicts: lib/asn1/test/test_undecoded_rest.erl
2010-09-10Merge branch 'kenneth/runtime_tools/inviso_autostart/OTP-8783' into devKenneth Lundin
* kenneth/runtime_tools/inviso_autostart/OTP-8783: patch from user regarding inviso_autostart_server in runtime_tools
2010-09-10Merge branch 'kenneth/asn1/uper_contrained_number/OTP-8779' into devKenneth Lundin
* kenneth/asn1/uper_contrained_number/OTP-8779: Fix bug in UNALIGNED PER regarding encode/decode of constrained number with valuerange > 1024
2010-09-10Merge branch 'kenneth/runtime_tools/inviso-patches-from-E-user/OTP-8755' ↵Kenneth Lundin
into dev * kenneth/runtime_tools/inviso-patches-from-E-user/OTP-8755: Minor corrections and remove of temporary workaround.
2010-09-10Merge branch 'bjorn/http-packet-error/OTP-8831' into devBjörn Gustavsson
* bjorn/http-packet-error/OTP-8831: Make gen_tcp:recv/2 consistent with ssl:recv/2
2010-09-10Add warning about since long unsupported [{Cname,Val}] repr. of SEQUENCE/SETKenneth Lundin
Othe minor corrections as well.
2010-09-10Merge branch 'sv/ethread-atomic-mips' into devRickard Green
* sv/ethread-atomic-mips: add MIPS architecture to GCC ethread atomics support
2010-09-10Merge branch 'rickard/rwmtx-spin/OTP-8819' into devRickard Green
* rickard/rwmtx-spin/OTP-8819: Fix deadlock in reader optimized rwlock implementation Remove unused variables Increase spincount with many schedulers Re-enable spin wait on ethreads rwlocks
2010-09-09Merge branch 'ia/ssl-http-error-test' into devIngela Anderton Andin
* ia/ssl-http-error-test: Add test suite for packet http_error.
2010-09-09Merge branch 'ia/ssl-4.0.1/documentation' into devIngela Anderton Andin
* ia/ssl-4.0.1/documentation: Updated documentation for ssl-4.0.1
2010-09-09Merge branch 'bjorn/remove-books' into devBjörn Gustavsson
* bjorn/remove-books: Documentation: Remove the system/doc/Books directory
2010-09-09Make gen_tcp:recv/2 consistent with ssl:recv/2Björn Gustavsson
When the HTTP packet mode has been enabled for a socket, the ssl and gen_tcp modules have different error indications when there is an error while parsing the HTTP header: ssl:recv(SSLSocket, 0) -> {ok, {http_error, _Str}} gen_tcp:recv(Socket, 0) -> {error, {http_error, _Str}} We have decided to change gen_tcp:recv/2 to behave the same way as ssl:recv/2. That means that there will be always be an ok tuple if data could be succefully read from the socket, and an error tuple if there was a read error at the socket level.
2010-09-09Updated documentation for ssl-4.0.1Ingela Anderton Andin
2010-09-09Merge branch 'maint-r13' into devBjörn Gustavsson
* maint-r13: Add test suite for ic Add test suite for runtime_tools Add test suite for debugger Add test suite for os_mon
2010-09-09Add test suite for icNiclas Eklund
2010-09-09Merge branch 'dgud/et_fixes/OTP-8830' into devDan Gudmundsson
* dgud/et_fixes/OTP-8830: Fix wx viewer so it works on windows/mac.
2010-09-08Fix deadlock in reader optimized rwlock implementationRickard Green
A bug causing a deadlock in the reader optimized rwlock implementation has been fixed. This bug appeared in commit 59ee2a593090e7d53c97ceba63cbd300d1b9657e, i.e., it has not been seen in any released versions.
2010-09-08Remove unused variablesRickard Green
2010-09-08Increase spincount with many schedulersRickard Green
2010-09-08Re-enable spin wait on ethreads rwlocksRickard Green
Spin wait on most ethread rwlocks used by the runtime system was unintentionally disabled during development. Spin wait has now been enabled again. This bug appeared in commit 59ee2a593090e7d53c97ceba63cbd300d1b9657e, i.e., it has not been seen in any released versions.
2010-09-08Merge branch 'ks/hipe-fixes' into devHans Bolinder
* ks/hipe-fixes: Update the Types and Function Specifications chapter in the Reference Manual. Up-to-date additions and changes to type reference manual. Up-to-date additions and changes to type reference manual.
2010-09-08Merge branch 'cg/docs-fixes' into devBjörn Gustavsson
* cg/docs-fixes: Linkify applications listed under "See Also" Fix minor typos in the documentation
2010-09-08Merge branch 'ms/fix-erl_call-overflow' into devBjörn-Egil Dahlberg
* ms/fix-erl_call-overflow: erl_call: fix multiple buffer overflows OTP-8827
2010-09-08erl_call: fix multiple buffer overflowsMichael Santos
Check operations that can overflow, e.g., erl_call -sname $(perl -e 'print "x"x5000') perl -e 'print "-module(", "x"x10000, ");"' | erl_call -m -r -sname foo
2010-09-08Merge branch 'ia/ssl-forgot-DH-params-DER' into devIngela Anderton Andin
* ia/ssl-forgot-DH-params-DER: Add missed DER dh option.
2010-09-07add MIPS architecture to GCC ethread atomics supportSteve Vinoski
Gcc for MIPS supports immediate atomic gets and sets, and also supports a working __sync_synchronize() for gcc 4.2 and greater.
2010-09-07Teach erl_bif_binary not leak memory by doing malloc(0)Patrik Nyblom
2010-09-07Add support for ExtensionAdditionGroup notation in nested types as wellKenneth Lundin
In the previous version support for ExtensionAdditionGroups (i.e [[...]]) was added but it did not handle the occurence of the notation in nested types. Now this is handled as well and the support is hopefully complete. Also cleanup of warnings for obsolete guard functions in test suites.
2010-09-07Add warning in documentation about that GS will be deprecated and removed ↵Kenneth Lundin
from distribution soon
2010-09-07Add test suite for packet http_error.Ingela Anderton Andin
2010-09-07Update the Types and Function Specifications chapter in the Reference Manual.Hans Bolinder
The latest additions to the extension of Erlang used for describing types and specifications have been documented. There are new compiler attributes such as -opaque and -export_all as well as an alternative syntax for subtype constraints ('::' instead of is_subtype/2).
2010-09-07Correct typos in erlang.xmlTuncer Ayaz
semanticts -> semantics where -> were ddl -> dll NIF's -> NIFs OS-dependant -> OS-dependent
2010-09-07Linkify applications listed under "See Also"Cristian Greco