summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update SSH(6) documentationHansN-patch-1Hans Nilsson2018-04-111-2/+2
| | | Two drafts have now been RFCs. Only editorial changes in them from implementation point of view.
* Merge branch 'rickard/signals/OTP-14589'Rickard Green2018-04-112-9/+10
|\ | | | | | | | | | | * rickard/signals/OTP-14589: Fix seq trace Fix bad assert
| * Fix seq traceRickard Green2018-04-051-8/+10
| |
| * Fix bad assertRickard Green2018-03-271-1/+0
| |
* | Add scripts/diffableBjörn Gustavsson2018-04-111-0/+620
| | | | | | | | | | Run scripts/diffable without arguments to print a description and a few examples.
* | Merge pull request #1752 from lucafavatella/httpc-connection-closePéter Dimitrov2018-04-114-43/+123
|\ \ | | | | | | Teach httpc to honour server connection close
| * | inets: Improve readability of handling of server `Connection: close`Luca Favatella2018-04-061-15/+9
| | | | | | | | | | | | Addresses https://github.com/erlang/otp/pull/1752#discussion_r177970060
| * | inets: Work around warning in testLuca Favatella2018-04-061-1/+1
| | | | | | | | | | | | | | | ... addressing PR comment https://github.com/erlang/otp/pull/1752#pullrequestreview-107945563
| * | inets: Avoid `erlang:get_stacktrace/0` deprecated in OTP 21Luca Favatella2018-04-051-8/+4
| | |
| * | inets: Teach httpc to honour `Connection: close` from serverLuca Favatella2018-03-232-10/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From https://tools.ietf.org/html/rfc7230#section-6.6 > A client that receives a "close" connection option MUST cease sending requests on that connection and close the connection after reading the response message containing the "close"; if additional pipelined requests had been sent on the connection, the client SHOULD NOT assume that they will be processed by the server. Notes on tests: * The new tests are added only in group sim_http and not sim_https because the same test approach appears to be not valid because when processing the first response the server already sent data (> 0) for the TLS/SSL handshake; * The order of tests is relevant as it appears some test cases leave reusable sessions behind.
| * | inets: Fix profile used in persistent_connection tests in httpc_SUITELuca Favatella2018-03-231-1/+1
| | | | | | | | | | | | | | | It looks like a typo, though I did not experience impact of this on tests.
| * | inets: Make httpc error reason more informative for unexpected errorsLuca Favatella2018-03-231-8/+12
| | |
| * | inets: Enable stronger Dialyzer checks in httpc_handlerLuca Favatella2018-03-231-1/+1
| | |
| * | inets: Remove httpc dead code re init errorLuca Favatella2018-03-232-22/+2
| | | | | | | | | | | | | | | ... i.e. references to `connect_failed` and `send_failed`, unused since 5d32eaf750 .
| * | inets: Delete obsolete comment in httpc_response:resultLuca Favatella2018-03-231-1/+0
| | |
* | | Merge pull request #1751 from fhunleth/heart-timeoutLukas Larsson2018-04-101-2/+3
|\ \ \ | | | | | | | | Remove note about heart rebooting on NTP updates
| * | | kernel: Update note about heart rebooting on NTP updatesFrank Hunleth2018-04-101-2/+3
| | | | | | | | | | | | | | | | | | | | The timestamp code in heart uses monotonic time so it is immune to NTP changes.
* | | | Update primary bootstrapBjörn Gustavsson2018-04-09126-29/+4
| | | |
* | | | Merge pull request #1777 from PragTob/fix-timer.tc-documentationLukas Larsson2018-04-091-2/+2
|\ \ \ \ | | | | | | | | | | Reflect actual timer:tc behaviour in documentation
| * | | | Reflect actual timer:tc behaviour in documentationTobias Pfeiffer2018-04-081-2/+2
|/ / / / | | | | | | | | | | | | | | | | It was switched to monotnic_time from timestamp 3 years ago in d927209aa36fe370eb4ecf0a081923b0b951458b
* | | | erts: Fix doc typo for enif_free_iovecSverker Eriksson2018-04-061-1/+1
| | | |
* | | | Merge pull request #1773 from bjorng/bjorn/compiler/beam_validator-receiveBjörn Gustavsson2018-04-064-28/+651
|\ \ \ \ | | | | | | | | | | Check that messages outside of the heap are not corrupted
| * | | | Check that messages outside of the heap are not corruptedBjörn Gustavsson2018-04-064-28/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Waiting messages for a process may be stored in a queue outside of any heap or heap fragment belonging to the process. This is an optimization added in a recent major release to avoid garbage collection messages again and again if there is a long message queue. Until such message has been matched and accepted by the remove_message/0 instruction, the message must not be included in the root set for a garbage collection, as that would corrupt the message. The loop_rec/2 instruction explicitly turns off garbage collection of the process as long messages are being matched. However, if the compiler were to put references to a message outside of the heap in an Y register (on the stack) and there happened to be a GC when the process had been scheduled out, the message would be corrupted and the runtime system would crash sooner or later. To ensure that doesn't happen, teach beam_validator to check for references on the stack to messages outside of the heap.
* | | | | Merge pull request #1774 from bjorng/bjorn/erts/dump-literal-funsBjörn Gustavsson2018-04-061-0/+3
|\ \ \ \ \ | | | | | | | | | | | | Support dumping of external fun literals to a crash dump
| * | | | | Support dumping of external fun literals to a crash dumpBjörn Gustavsson2018-04-051-0/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63e1c58d27ab (PR #1725) started to compile external funs as literals. This commit updates the dumping of literal areas to dump external fun literals to the crash dump.
* | | | | Merge branch 'maint'Hans Nilsson2018-04-063-2/+19
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release ssh: Fix ssh_sftpd:handle_op not returning State
| * \ \ \ \ Merge branch 'maint-19' into maintHans Nilsson2018-04-063-2/+19
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint-19: Updated OTP version Prepare release ssh: Fix ssh_sftpd:handle_op not returning State Conflicts: OTP_VERSION lib/ssh/doc/src/notes.xml lib/ssh/vsn.mk otp_versions.table
| | * | | | | Updated OTP versionOTP-19.3.6.8Erlang/OTP2018-04-052-1/+2
| | | | | | |
| | * | | | | Prepare releaseErlang/OTP2018-04-052-1/+17
| | | | | | |
| | * | | | | Merge branch 'hans/ssh/sftpd_rm_dir_err_19/OTP-15004' into maint-19Erlang/OTP2018-04-051-2/+4
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hans/ssh/sftpd_rm_dir_err_19/OTP-15004: ssh: Fix ssh_sftpd:handle_op not returning State
| | | * | | | | ssh: Fix ssh_sftpd:handle_op not returning StateHans Nilsson2018-04-051-2/+4
| | |/ / / / /
* | | | | | | Merge pull request #1775 from MonsieurV/patch-1Lukas Larsson2018-04-061-1/+1
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | Doc: use that node name between code and commands
| * | | | | | Doc: use that node name between code and commandsYoan Tournade2018-04-051-1/+1
|/ / / / / / | | | | | | | | | | | | The server_node() function in the sample code was referring to messenger@bill, while the commands that follow use messenger@super as node name. Making both names consistent make it easier for newbies to test the code.
* | | | | | Merge pull request #1769 from bjorng/bjorn/compiler/beam_utilsBjörn Gustavsson2018-04-052-5/+24
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix unsafe optimization of record test
| * | | | | | Fix unsafe optimization of record testBjörn Gustavsson2018-04-042-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | beam_record would make an unsafe optimization for the not_used_p/4 function added to beam_utils_SUITE in this commit. The bug is in beam_utils, which would falsely report that {x,4} was unused when it in fact was used. The bug was in the function not_used/1. The purpose of not_used/1 is to return a 'not_used' result unless the actual result is 'used'. Unfortunately it was not implemented in that way. It would let a 'transparent' result slip through, which the caller in this case would convert to 'killed' (because the register was killed on all other paths). Reported-by: Richard Carlsson
* | | | | | | Merge branch 'sverker/monitor-frenzy-fix'Sverker Eriksson2018-04-041-7/+18
|\ \ \ \ \ \ \
| * | | | | | | erts: Fix race in nif_SUITE:monitor_frenzySverker Eriksson2018-03-281-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | detected by valgrind. We cannot compare monitor in state MON_FREE before it's initialized. Still not really kosher to access 'state' without lock or atomic-op.
* | | | | | | | Merge pull request #1725 from michalmuskala/fun-literalsBjörn Gustavsson2018-04-0410-24/+77
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compile external fun expressions to literals OTP-15003
| * | | | | | | Compile external fun expressions to literalsMichał Muskała2018-03-2610-24/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The expressions fun M:F/A, when all elements are literals are also treated as a literal. Since they have consistent representation and don't depend on the code currently loaded in the VM, this is safe. This can provide significant performance improvements in code using such functions extensively - a full function call to erlang:make_fun/3 is replaced by a single move instruction and no register shuffling or saving registers to stack is necessary. Additionally, compound data types that contain such external functions as elements can be treated as literals too. The commit also changes the representation of external funs to be a valid Erlang syntax and adds support for literal external funs to core Erlang.
* | | | | | | | Merge branch 'lukas/erts/tcp_send_return_closed/OTP-15001'Lukas Larsson2018-03-291-0/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lukas/erts/tcp_send_return_closed/OTP-15001: erts: tcp send should return {error,closed}
| * | | | | | | | erts: tcp send should return {error,closed}Lukas Larsson2017-10-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the scenario where a gen_tcp:recv/2 detected an error, the next gen_tcp:send should get a closed error and not a enotconn error as was the case before.
* | | | | | | | | Merge branch 'lukas/ei/fix_tmo_test'Lukas Larsson2018-03-291-0/+1
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lukas/ei/fix_tmo_test: ei: Include stdlib.h to fix malloc usage in ei test
| * | | | | | | | | ei: Include stdlib.h to fix malloc usage in ei testLukas Larsson2018-03-131-0/+1
| | | | | | | | | |
* | | | | | | | | | Merge pull request #1765 from peterdmv/split_inets/OTP-14113Péter Dimitrov2018-03-29107-866/+3612
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Split inets OTP-14113
| * | | | | | | | | | ftp,tftp: Update initial version 1.0.0 -> 1.0Péter Dimitrov2018-03-286-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I014b191da144c299d056eb155ed99ace710112b1
| * | | | | | | | | | ftp,tftp: Add AUTHORS to ftp and tftpPéter Dimitrov2018-03-282-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie0f52e82484462f8f7ec58c37ce16081af432797
| * | | | | | | | | | tftp: Improve documentationPéter Dimitrov2018-03-286-48/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie23a40e7159fe632cf5514ac617de17c5d5b5ce2
| * | | | | | | | | | common_test: Remove dependency to inets ftpPéter Dimitrov2018-03-283-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Update ct_ftp to use the new FTP application. Change-Id: I84223107361132ea3144cdf7421738c4bebffa40
| * | | | | | | | | | tftp: Add tests (app, appup, start_tftpd)Péter Dimitrov2018-03-282-4/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I585ba5097632d460705257f03cb44adf8038f0be
| * | | | | | | | | | inets: Fix inets:services()Péter Dimitrov2018-03-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I20d44e771577b19060fbba0b2e83f64909c60faa