aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-05-12Fix gen_tcp:shutdown/2 by making it asynchronousRory Byrne
If the driver queue is empty, or the user is requesting a 'read' shutdown, then the shutdown() syscall is performed synchronously, as per the old version of shutdown/2. However, if the user is requesting a 'write' or 'read_write' shutdown, and there is data in the driver queue for the socket, then the shutdown() syscall is delayed and handled asynchronously when the driver queue is written out. This version of shutdown solves a number of issues with the old version. The two main solutions it offers are: * It doesn't block when the TCP peer is idle or slow. This is the expected behaviour when shutdown() is called: the caller needs to be able to continue reading from the socket, not be prevented from doing so. * It doesn't truncate the output. The current version of gen_tcp:shutdown/2 will truncate any outbound data in the driver queue after about 10 seconds if the TCP peer is idle of slow. Worse yet, it doesn't even inform anyone that the data has been truncated: 'ok' is returned to the caller; and a FIN rather than an RST is sent to the TCP peer. For a detailed description of all the problems with the old version of shutdown, please see the EEP Light that was written to justify this patch.
2015-05-08Merge branch 'bjorn/asn1/doc'Björn Gustavsson
* bjorn/asn1/doc: asn1_spec: Correct obsolete details about compiler options Update asn1 documentation
2015-05-08Merge branch 'richcarl/md5-fixes'Björn Gustavsson
* richcarl/md5-fixes: Set module_info md5 for native modules properly Add module_info entry for native code Gracefully handle empty md5 field in module_info Remove 'imports' key from spec of get_module_info()
2015-05-08Merge branch 'bruce-yinhe/fixed_typo_in_maps_doc'Zandra Hird
* bruce-yinhe/fixed_typo_in_maps_doc: Fixed a typo in Maps doc
2015-05-08Fixed a typo in Maps docBruce Yinhe
2015-05-08Merge branch 'horvand/filtermap-doc-comma-fix'Zandra Hird
* horvand/filtermap-doc-comma-fix: Delete superfluous comma from `filtermap' example
2015-05-08Delete superfluous comma from `filtermap' exampleAndras Horvath
The code explaining the behaviour of `filtermap/2` had a syntax error and wouldn't compile
2015-05-08Merge branch 'hb/typer/erl_anno_fix'Hans Bolinder
* hb/typer/erl_anno_fix: typer: Properly extract annotations
2015-05-08typer: Properly extract annotationsHans Bolinder
The addition of the erl_anno module, OTP-12195, also modified v3_core so that functions with line number zero are regarded as compiler generated.
2015-05-08Merge branch 'michaelklishin/patch-1'Zandra Hird
* michaelklishin/patch-1: Fix a typo
2015-05-08Fix a typoMichael Klishin
2015-05-08Merge branch 'fishcakez/ct_test_dirs'Zandra Hird
* fishcakez/ct_test_dirs: Fix parsing list of one test directory in ct:run_test/1
2015-05-08Merge branch 'nox/test_server-lines'Zandra Hird
* nox/test_server-lines: Undocument the line macro in test_server
2015-05-08Merge branch 'aronisstav/dialyzer-inv-mult'Zandra Hird
* aronisstav/dialyzer-inv-mult: Fix a bug related to constraints generated for erlang:'*'/2 OTP-12725
2015-05-08Merge branch 'hb/document_identifier_type/OTP-11306'Hans Bolinder
* hb/document_identifier_type/OTP-11306: dialyzer: document the type identifier()
2015-05-08dialyzer: document the type identifier()Hans Bolinder
2015-05-08Merge branch 'lars/remove_now/OTP-12687'Lars Thorsen
* lars/remove_now/OTP-12687: [orber, cos*] Remove usage of erlang:now() in test suites [orber] Use rand instead of random [orber, cos*] Bump versions and update dependencies in app file [orber, cos*] Remove usage of erlang:now()
2015-05-08[orber, cos*] Remove usage of erlang:now() in test suitesLars Thorsen
2015-05-08[orber] Use rand instead of randomLars Thorsen
2015-05-08[orber, cos*] Bump versions and update dependencies in app fileLars Thorsen
2015-05-08[orber, cos*] Remove usage of erlang:now()Lars Thorsen
2015-05-08Update primary bootstrapBjörn Gustavsson
2015-05-08Merge branch 'bjorn/stdlib/fix-filename-split/OTP-12716'Björn Gustavsson
* bjorn/stdlib/fix-filename-split/OTP-12716: Correct filename:split(<<"">>)
2015-05-08Merge branch 'bjorn/kernel/code-loading'Björn Gustavsson
* bjorn/kernel/code-loading: code: Make load_native_code_for_all_loaded/0 comply to spec
2015-05-08Merge branch 'nox/compiler/parse_transform-undef/OTP-12723'Björn Gustavsson
* nox/compiler/parse_transform-undef/OTP-12723: Properly report unknown parse transforms
2015-05-08asn1_spec: Correct obsolete details about compiler optionsBjörn Gustavsson
There is now only one BER back-end, and there is no 'optimize' option.
2015-05-08Update asn1 documentationxsipewe
Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Björn Gustavsson.
2015-05-08Merge branch 'dgud/stdlib/rand/OTP-12586'Dan Gudmundsson
* dgud/stdlib/rand/OTP-12586: stdlib: Document and add normal distributed random value function stdlib: Add new random functionality/module
2015-05-08Merge branch 'lars/erl_docgen/extra_first_page_info/OTP-12722'Lars Thorsen
* lars/erl_docgen/extra_first_page_info/OTP-12722: [erl_docgen] Add the extra front page info to pdf [erl_docgen] Update style for extra front page info [erl_docgen] Add possibility to add extra ino line on front page
2015-05-08[erl_docgen] Add the extra front page info to pdfLars Thorsen
2015-05-08[erl_docgen] Update style for extra front page infoLars Thorsen
2015-05-08[erl_docgen] Add possibility to add extra ino line on front pageLars Thorsen
2015-05-08Merge branch 'lars/xmerl/fix-warnings/OTP-12689'Lars Thorsen
* lars/xmerl/fix-warnings/OTP-12689: [xmerl] Fix compiler warnings
2015-05-08[xmerl] Fix compiler warningsLars Thorsen
2015-05-07Merge branch 'hans/eldap/prepare_release'Hans Nilsson
* hans/eldap/prepare_release: eldap: update vsn.mk to 1.2
2015-05-07eldap: update vsn.mk to 1.2Hans Nilsson
2015-05-07Merge branch 'egil/fix-pos-zero-opt'Björn-Egil Dahlberg
* egil/fix-pos-zero-opt: erts: Don't let the compiler optimize pos. zero fix
2015-05-07Merge branch 'egil/fix-ts_install-hook'Björn-Egil Dahlberg
* egil/fix-ts_install-hook: test_server: Fix install_hook
2015-05-07code: Make load_native_code_for_all_loaded/0 comply to specBjörn Gustavsson
7309ff4c38325 introduced a mismatch between load_native_code_for_all_loaded/0 and its spec. We could just delete spec, but it is cleaner to ensure that the function always returns 'ok'. Noticed-by: Tuncer Ayaz
2015-05-07Set module_info md5 for native modules properlyRichard Carlsson
Use the md5 of the native code chunk instead of the Beam code md5.
2015-05-07Add module_info entry for native codeRichard Carlsson
2015-05-07Gracefully handle empty md5 field in module_infoRichard Carlsson
2015-05-07Remove 'imports' key from spec of get_module_info()Richard Carlsson
2015-05-07Merge branch 'henrik/update-javaversion'Henrik Nord
* henrik/update-javaversion: update java version OTP-12715
2015-05-07asn1: Remove increasingly obsolete comment in vsn.mkBjörn Gustavsson
2015-05-07Merge branch 'ia/ssh/extra-logout'Ingela Anderton Andin
* ia/ssh/extra-logout: ssh: Hadle shell that sends two logout messages
2015-05-07Merge branch 'hans/ssh/prepare_release'Hans Nilsson
* hans/ssh/prepare_release: ssh: update vsn.mk to 4.0
2015-05-07ssh: update vsn.mk to 4.0Hans Nilsson
2015-05-06erts: Don't let the compiler optimize pos. zero fixBjörn-Egil Dahlberg
2015-05-06Merge branch 'sverk/hipe_match_wbin/OTP-12667'Sverker Eriksson
* sverk/hipe_match_wbin/OTP-12667: erts: Add debug assertions for match state sanity hipe: Add test for matching of writable binary erts,hipe: Optimize away calls to emasculate_binary erts,hipe: Fix bug in binary matching of writable binary Conflicts: erts/emulator/hipe/hipe_bif0.c