1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 00:50:44 -08:00
emacs/test/src
Mattias Engdegård 7a803ecd3d Block TLS handshake until TCP connection established
If a TLS handshake is attempted before the completion of an
asynchronous TCP connection has been ascertained, our local state will
not be set up correctly for further progress and the sentinel "open"
event will never be sent.  This can occur if sufficient time passes
after the initiation of an async TCP connection so that by the time
`wait_reading_process_output` is called, the connection has already
been established on the TCP level.

This somewhat timing-sensitive bug has plagued HTTPS connections on
some platforms, notably macOS, for a long time (bug#49449).

* src/process.c (wait_reading_process_output): Gate the TLS handshake
by the NON_BLOCKING_CONNECT_FD flag.  The flag will be cleared as soon
as the TCP socket is found to be writable.
* test/src/process-tests.el (process-async-https-with-delay):
New test.
2021-07-13 19:07:41 +02:00
..
comp-resources Make use of ert-resource-file' ert-resource-directory' in comp-tests 2021-04-26 20:01:50 +02:00
emacs-module-resources Pacify gcc 11.1.1 -Wanalyzer-possible-null-dereference 2021-07-12 00:12:21 -07:00
lread-resources
regex-resources
syntax-resources Enhance syntax-tests.el to test nestable comments (Lisp style) 2020-11-17 16:51:49 +00:00
alloc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
buffer-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callint-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
callproc-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
casefiddle-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
character-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
charset-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
chartab-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
cmds-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
coding-tests.el Avoid lowering gc-cons-threshold 2021-04-22 04:11:02 +02:00
comp-tests.el Rename batch-byte-native-compile-for-bootstrap (bug#48743) 2021-06-01 18:11:37 +02:00
data-tests.el Assert not local-variable-p after setq in let_default binding 2021-03-25 12:39:26 -04:00
decompress-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00
editfns-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
emacs-module-tests.el * test/src/emacs-module-tests.el (mod-test-file): Unbreak out-of-tree. 2021-05-10 11:37:40 -07:00
emacs-tests.el Don't use symbolic links in the test resource directory. 2021-05-07 18:36:57 +02:00
eval-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fileio-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
filelock-tests.el File unlock errors now issue warnings (Bug#46397) 2021-03-27 12:17:31 +03:00
floatfns-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
fns-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
font-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
indent-tests.el ; Minor license statement fixes 2021-02-08 09:10:57 +01:00
inotify-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
json-tests.el Allow any JSON value at the top level (Bug#42994). 2021-02-13 14:37:19 +01:00
keyboard-tests.el * test/lisp/emacs-lisp/edebug-tests.el: Adjust to new edebug-eval-defun. 2021-02-19 12:08:00 -05:00
keymap-tests.el Add some new tests for keymap.c 2021-03-06 04:10:45 +01:00
lcms-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
lread-tests.el Fix lexing of numbers with trailing decimal point and exponent 2021-05-27 14:16:28 +02:00
marker-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
minibuf-tests.el * test/src/minibuf-tests.el (test-inhibit-interaction): Fix test. 2021-02-01 12:29:10 +01:00
print-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
process-tests.el Block TLS handshake until TCP connection established 2021-07-13 19:07:41 +02:00
regex-emacs-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
syntax-tests.el Add a new function syntax-class-to-char 2021-06-15 17:01:57 +02:00
textprop-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
thread-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
timefns-tests.el ; Normalize and add missing first and last lines 2021-04-19 12:21:01 +02:00
undo-tests.el Fix a warning due to not preloading facemenu.el 2021-03-19 02:12:01 +01:00
xdisp-tests.el * test/src/xdisp-tests.el: Fix tests to work in batch mode 2021-01-18 19:03:01 +02:00
xfaces-tests.el Update copyright year to 2021 2021-01-01 01:13:56 -08:00
xml-tests.el Prefer skip-unless in more tests 2021-01-13 17:39:53 +01:00