aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-07-18[esock] Fixed a copy-and-paste error for bindtodeviceMicael Karlberg
Fixed a copy-and-paste error for socket option bindtodevice. Incorrectly used SO_BROADCAST option instead. OTP-15904
2019-07-18[esock|test] Make the broadcast test case more forgivingMicael Karlberg
OTP-15904
2019-07-18[esock|test] Some platforms does not accept acceptconn for UDPMicael Karlberg
Some platforms (for example darwin and OpenBSD) does not accept this option for UDP. Will result in 'enoprotoopt'. So, skip that part of the test case (UDP) if this error occurs. OTP-15904
2019-07-18Fix io:columns() and io:rows() are not working from escripts bugKjell Winblad
The functions io:columns() and io:rows() only worked correctly inside interactive erlang shells before this fix. These functions returned {error,enotsup} before this fix even if stdout and stdin were connected to a terminal when they were invoked from an escript or a program started with e.g., `erl -noshell`. This commit fixes issue ERL-717.
2019-07-18Merge branch 'bmk/erts/esock/20190718/socket_option_keepalive/OTP-15904' ↵Micael Karlberg
into bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-18Merge branch 'bmk/erts/esock/20190718/socket_option_dontroute/OTP-15904' ↵Micael Karlberg
into bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-18Merge branch 'bmk/erts/esock/20190717/socket_option_domain/OTP-15904' into ↵Micael Karlberg
bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-18[esock|test] Add test case for socket option 'keepalive'Micael Karlberg
OTP-15904
2019-07-18[esock|test] Add test case for socket option 'dontroute'Micael Karlberg
OTP-15905
2019-07-18[megaco|test] Removed the "compile all" compiler directive (mreq)Micael Karlberg
Removed the "compile all" compiler directive for the mreq megaco test suite. This is not actually used in the "top" suite (for some reason). We leave it like that, but still fix the various issues so that it at least work.
2019-07-18[megaco|test] Removed the "compile all" compiler directive (load)Micael Karlberg
Removed the "compile all" compiler directive for the load megaco test suite.
2019-07-17[megaco|test] Removed the "compile all" compiler directive (examples)Micael Karlberg
Removed the "compile all" compiler directive for the examples megaco test suite.
2019-07-17[esock|doc] *May* require admin capabilityMicael Karlberg
2019-07-17[esock|test] Add test case for the domain socket optionMicael Karlberg
OTP-15904
2019-07-17[megaco|test] Removed the "compile all" compiler directive (digit map)Micael Karlberg
Removed the "compile all" compiler directive for the digit map megaco test suite.
2019-07-17Merge branch 'bmk/erts/esock/20190717/socket_option_debug/OTP-15904' into ↵Micael Karlberg
bmk/erts/esock/20190717/socket_options/OTP-15904
2019-07-17[megaco|test] Removed the "compile all" compiler directive (config)Micael Karlberg
Removed the "compile all" compiler directive for the config megaco test suite.
2019-07-17[esock|doc] Clarify select infoMicael Karlberg
Clarify select info, used in various functions. OTP-15731
2019-07-17[megaco|test] Removed the "compile all" compiler directive (codec)Micael Karlberg
Removed the "compile all" compiler directive for the codec megaco test suite.
2019-07-17[esock|test] Add an attempt to read out the new debug valueMicael Karlberg
After a successful set of debug, also attempt to read it back to check that it actually took. OTP-15904
2019-07-17[megaco|test] Removed the "compile all" compiler directive (call flow)Micael Karlberg
Removed the "compile all" compiler directive for the call flow megaco test suite.
2019-07-17[esock|test] Add test case for socket option 'debug'Micael Karlberg
The test case must either be run with a user that has CAP_NET_ADMIN capability or by root. Otherwise the test case will be skipped (eacces). OTP-15904
2019-07-17[megaco|test] Removed the "compile all" compiler directive (actions)Micael Karlberg
Removed the "compile all" compiler directive for the actions megaco test suite.
2019-07-17[megaco|test] Removed the "compile all" compiler directive (appup)Micael Karlberg
Removed the "compile all" compiler directive for the appup megaco test suite.
2019-07-17[megaco|test] Removed the "compile all" compiler directive (app)Micael Karlberg
Removed the "compile all" compiler directive for the app megaco test suite.
2019-07-17[megaco|test] Removed the "compile all" compiler directive (top)Micael Karlberg
Removed the "compile all" compiler directive for the top megaco test suite.
2019-07-17[esock|test] Fix broadcast test on FreeBSDMicael Karlberg
On FreeBSD (for instance) the address "broadcast" (limited broadcast address = INADDR_BROADCAST) is not available (=> eaddrnotavail), so that part of the test is skipped. OTP-15904
2019-07-17[esock] Handle wildcard address 'broadcast' when bindingMicael Karlberg
Its now possible to bind a socket to the (limited) broadcast address by specifying 'broadcast' as address: socket:bind(Socket, broadcast) This is *only* valid for family 'inet'. Add testing of sending (broadcasting) to both "limited" broadcast address and "subnet-directed" broadcast address. OTP-15904
2019-07-17[esock|test] Post rebase correctionsMicael Karlberg
OTP-15904
2019-07-17[esock] Add test case for socket option bindtodeviceMicael Karlberg
Add test case for the socket option bindtodevice. Also make correction in the nif code. Used the wrong option (broadcast). Also added more info to doc. Note sure if this test case actually works. Set and get "works", but the value returned by get is always "". So either we should extend the test to made sure the bind actually has the expected effect or... Something for a rainy day maybe... OTP-15904
2019-07-17[esock|test] Add placeholder test case for socket option acceptfilterMicael Karlberg
OTP-15904
2019-07-17[esock] Add test case for socket option acceptconnMicael Karlberg
Add test case for the socket option acceptconn. Also make minor correction (error when trying to set this option was incorrect). Doc was also incorrect (spelled wrong). OTP-15904
2019-07-17Merge branch 'bmk/erts/esock/20190715/tests_tweaking' into maintMicael Karlberg
2019-07-17ssl: Fix handling of ALPN in TLS 1.3Péter Dimitrov
2019-07-17[megaco|test] Reworked the test generator behaviourMicael Karlberg
Reworked the megaco test generator (megaco_test_generator) behaviour to remove compiler warnings.
2019-07-17[megaco|test] erlang:now() and random cleanupMicael Karlberg
Removed all use of erlang:now() and the deprecated random module from the test suite.
2019-07-17[megaco|test] Make the mib test suite more verboseMicael Karlberg
Make the mib (sub-) test suite more verbose and also do some printout when starting slave nodes (to see just how long time it takes). The connect test case failed on one (possibly) slow host during what looked lite mgc start (timeout). But since there where no printouts during that phase, there is no way to know what was going on.
2019-07-16Merge branch 'bmk/erts/esock/20190708/ipv6/OTP-15897' into maintMicael Karlberg
2019-07-16The linger option is not transferred on *BSDRaimo Niskanen
2019-07-16Merge branch 'raimo/test-cuddling' into maintRaimo Niskanen
* raimo/test-cuddling: Fix leaking SSL node
2019-07-15[esock|test] Adjusted time trapsMicael Karlberg
2019-07-15[esock|test] Extend gcc and multicast checksMicael Karlberg
Extend the "checks" for faulty gcc (found another platform with the same problem (Old SLES 11). Also tweaked the multicast test a bit.
2019-07-12Merge branch 'maint-21' into maintRaimo Niskanen
* maint-21: Updated OTP version Prepare release # Conflicts: # OTP_VERSION # lib/ssl/doc/src/notes.xml # lib/ssl/vsn.mk # make/otp_version_tickets # otp_versions.table
2019-07-12Merge branch ↵Raimo Niskanen
'raimo/ssl/fix-zero-fragment-buffer-handling/ERIERL-379/OTP-15328' into maint * raimo/ssl/fix-zero-fragment-buffer-handling/ERIERL-379/OTP-15328: Do not call dist_ctrl_put_data with empty binaries Refine the queue code Fix extracting 0 bytes from queue
2019-07-11beam_validator: Values referenced by other values must be mergedJohn Högberg
This is a more proper fix for ERIERL-348. We used to think that we wouldn't need to update the type of a variable that's no longer referenced by a register ("dead value"), but the attached test case pokes a hole in that assumption. To summarize, the result of '=:='/2 is kept alive longer than one of its arguments, which gets pruned in a state merge leaving us with nothing to work on when we finally compare the result. This is fine for most operations since there's no point in (say) updating the size of a tuple we can no longer reach, but '=:='/2 updates the types of both arguments and we risk missing out on important information when either of them is gone. This commit fixes the problem by merging all values that are *reachable* from a register, rather than just those that *exist* in a register, ensuring that all values stay around at least as long as they're needed.
2019-07-11Fix leaking SSL nodeRaimo Niskanen
2019-07-11Updated OTP versionOTP-21.3.8.6maint-21Erlang/OTP
2019-07-11Prepare releaseErlang/OTP
2019-07-11Merge branch 'rickard/test-fixes-21' into maint-21Erlang/OTP
* rickard/test-fixes-21: Fix unstable test dump_SUITE:signal_abort Fix unstable node_container_SUITE:magic_ref test Fix unstable node_container_SUITE:node_controller_refc test Fix unstable tests process_SUITE:no_priority_inversion{,2}
2019-07-11Merge branch ↵Erlang/OTP
'raimo/ssl/fix-zero-fragment-buffer-handling/ERIERL-379/OTP-15328' into maint-21 * raimo/ssl/fix-zero-fragment-buffer-handling/ERIERL-379/OTP-15328: Do not call dist_ctrl_put_data with empty binaries Refine the queue code Fix extracting 0 bytes from queue