summaryrefslogtreecommitdiff
path: root/erts/preloaded
Commit message (Collapse)AuthorAgeFilesLines
* seq_trace: fix label spec missed in PR #1760Alexander Clouter2020-08-311-14/+4
|
* [kernel|esock] Add env variable ESOCK_USE_SOCKET_REGISTRYMicael Karlberg2020-07-152-7/+34
| | | | | | | Make it possible to set global default value using environment variable (ESOCK_USE_SOCKET_REGISTRY). OTP-16763
* [erts|kernel|esock] Make the use of the socket registry optionalMicael Karlberg2020-07-142-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Make the use of the socket registry optional by handling the new configure option (ESOCK_USE_SOCKET_REGISTRY). Also, add utility function (socket:use_registry/1) to update the global (socket default) value. Also, add socket option (level otp) to get the value of this option. And finally add a (use_registry-) option to the socket:open/2,4 function(s) to set a different value for an individual socket when creating it. OTP-16763 [erts|esock] Add getopt (of use_registry) also OTP-16763 [esock] Fixes OTP-16763 [erts|esock] Fixes OTP-16763
* Prepare releaseErlang/OTP2020-05-111-1/+1
|
* Handle native option with encoded levelRaimo Niskanen2020-04-282-3/+26
|
* Rename socket option variables to OptRaimo Niskanen2020-04-242-63/+82
|
* Simplify code for connect()Raimo Niskanen2020-04-172-12/+5
|
* Fix syntax error for USE_ESOCK != yesRaimo Niskanen2020-04-172-2/+2
|
* Use exceptions for fatal argument errorsRaimo Niskanen2020-04-092-211/+130
|
* Split socket moduleRaimo Niskanen2020-04-019-4205/+1402
| | | | | Split into preloaded prim_socket.erl, NIF prim_socket_nif.erl, and socket.erl in kernel.
* Update erl_prim_loader.erlCheng Zhe2020-03-301-1/+1
| | | Incorrect spelling
* Incorrect spellingCheng Zhe2020-03-251-1/+1
|
* Update preloaded modulesBjörn Gustavsson2020-03-2121-0/+0
|
* Add 'meta' option to type specRaimo Niskanen2020-03-192-0/+1
|
* socket: Clean up locks and stateRaimo Niskanen2020-03-192-58/+72
| | | | | | | | | | * Use mainly just readMtx and writeMtx * Use state as mostly a diagnostics feature, not for decisions * Remove the isReadable and isWritable flags * Unify socket debug logging (SSDBG) * Implement setting of socket debug and file name at NIF load from environment variables. * Fix file name encoding where needed
* Merge branch 'maint'Rickard Green2020-03-137-7/+7
|\ | | | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2020-03-137-7/+7
| |
* | Merge branch 'maint'Björn Gustavsson2020-03-1221-0/+0
|\ \ | |/ | | | | | | | | * maint: Update preloaded modules Update primary bootstrap
| * Update preloaded modulesBjörn Gustavsson2020-03-1221-0/+0
| |
| * erts: Fix a Dialyzer warningHans Bolinder2020-03-061-12/+12
| |
* | Revert "Prepare release"Henrik Nord2020-02-271-1/+1
| | | | | | | | This reverts commit 50e614e7d5fee9e3bfe8a58e7f390c6ea6caf271.
* | Prepare releaseErlang/OTP2020-02-261-1/+1
| |
* | erts: Fix unmatched return dialyzer warningLukas Larsson2020-02-242-12/+12
| |
* | Merge branch 'rickard/start-monitor/OTP-16120'Rickard Green2020-02-212-0/+4
|\ \ | | | | | | | | | | | | * rickard/start-monitor/OTP-16120: Support for start_monitor in proc_lib and gen behaviours
| * | Support for start_monitor in proc_lib and gen behavioursRickard Green2019-10-222-6/+6
| | |
* | | Update preloaded 'init' moduleRickard Green2020-02-211-0/+0
| | |
* | | Merge branch 'josevalim/jv-restart-with-mode' into ↵Rickard Green2020-02-211-8/+29
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | rickard/josevalim/jv-restart-with-mode/OTP-16492 * josevalim/jv-restart-with-mode: Allow changing the -mode when the system restarts
| * | | Allow changing the -mode when the system restartsJosé Valim2020-02-191-8/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order for Elixir developers to configure their systems using Elixir syntax, the Elixir application must be started. However, in order to start the Elixir application, kernel and stdlib need to be started, which means we can't configure those applications. Elixir addresses this by booting twice. First, the system boots with a minimal set of apps started, then it executes the configuration files, writes them to disk and restarts the system, which will pick up the new configuration. The problemw with such approach is that, when running in embedded mode, starting and shutting down the system takes a long period of time, due to the loading and purging of all modules. This PR addresses the problem by allowing the mode to be changed to embedded on init:restart/1. This allows Elixir to first boot in interactive mode, load the configuration, and then start the system in embedded mode. This reduces the boot time in the sample application that reproduces the problem from 5s to 1s.
* | | | Merge branch 'maint'Lukas Larsson2020-02-2123-11/+17
|\ \ \ \ | | |_|/ | |/| |
| * | | Update preloaded modulesLukas Larsson2020-02-2121-0/+0
| | | |
| * | | logger: Don't crash when unavailable during bootLukas Larsson2020-02-212-11/+17
| | | | | | | | | | | | | | | | | | | | If we try to log something before logger is started we don't want to crash. Instead we print using erlang:display.
* | | | Merge pull request #2540 from ↵Rickard Green2020-02-202-17/+31
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | rickard-green/rickard/spawn_request-improvements/OTP-15251 Adjust spawn_request() features
| * | | | 'reply' options for spawn_request()Rickard Green2020-02-202-4/+20
| | | | |
| * | | | Implement erlang:spawn_request_abandon/1Rickard Green2020-02-202-1/+6
| | | | |
| * | | | Revert "Timeout option for spawn_opt() and spawn_request()"Rickard Green2020-02-192-14/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit 77922009917e425dee66d0f829b2df1a895ade3e.
* | | | | [esock] Add netns to the socket supports functionMicael Karlberg2020-02-192-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the 'netns' argument to the socket:supports/1 function so that it is possible to test if its supported. OTP-16432
* | | | | [esock] Add "create type" (ctype) to socket infoMicael Karlberg2020-02-192-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add information about how the socket was created to the socket info; ctype, which makes it possible to identify sockets created with already existing file descriptors. OTP-16398
* | | | | [esock] Create a socket from an already existing fdMicael Karlberg2020-02-192-31/+54
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Make it possible to "create" a socket from an already existing file descriptor (fd). OTP-16398
* | | | Update preloaded modulesJohn Högberg2020-02-1221-0/+0
| | | |
* | | | otp: Add descriptions to all deprecation attributesJohn Högberg2020-02-121-1/+7
| | | |
* | | | Merge branch 'maint'Raimo Niskanen2020-02-072-488/+474
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Stop using typeof for struct timeval Fix lock order Cleanup locks Cleanup redundant cleanup code Cleanup requestor handling Fix specs Merge domain+type+proto in one getopt Cleanup timeout handling Cleanup parameter check functions Cleanup try-catch handling Fix nif_select and closeMtx handling Fix lock order Bugfix: do not read freed refs Try fix double free Fix close and abort handling Clean up send code and ref handling remove-unsuccesful-experiment: Fix timing dependent test case Fix timing dependent test case Do not self-close socket for econnreset Avoid deadlock and redundant close + abort message
| * | | Fix specsRaimo Niskanen2020-01-292-52/+51
| | | |
| * | | Merge domain+type+proto in one getoptRaimo Niskanen2020-01-282-87/+107
| | | |
| * | | Cleanup timeout handlingRaimo Niskanen2020-01-242-189/+178
| | | |
| * | | Cleanup parameter check functionsRaimo Niskanen2020-01-232-8/+14
| | | |
| * | | Cleanup try-catch handlingRaimo Niskanen2020-01-232-70/+45
| | | |
| * | | Fix close and abort handlingRaimo Niskanen2020-01-232-12/+23
| | | |
| * | | Clean up send code and ref handlingRaimo Niskanen2020-01-222-101/+103
| | | |
| * | | Do not self-close socket for econnresetRaimo Niskanen2020-01-222-16/+0
| | | |
* | | | Merge branch 'maint'Raimo Niskanen2020-01-222-413/+418
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * maint: Implement level 'otp' option 'meta' Fix length type to size_t Rename SOCK_/SOCKET_ -> ESOCK_