1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/lib/tsocket
Stefan Metzmacher 5bedf1675e lib/tsocket: make use of TEVENT_FD_ERROR in tstream_bsd_fde_handler()
This makes the logic introduced to fix bug #15202 simpler.

While developing this I noticed that a lot of callers
rely on the fact that they can read the pending bytes out
of the recv queue before EOF is reported.

So I changed the code handle TEVENT_FD_ERROR together with
TEVENT_FD_READ in a way that keep the existing callers happy.

In the next step we'll add a way to let callers opt-in in order
to fail immediately if TEVENT_FD_ERROR appears (even if there
are pending bytes remaining in the recv queue).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15202

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-10-24 09:36:37 +00:00
..
tests tsocket: Increase tcp_user_timeout max_loops 2023-03-14 06:16:30 +00:00
doxy.config
tsocket_bsd.c lib/tsocket: make use of TEVENT_FD_ERROR in tstream_bsd_fde_handler() 2023-10-24 09:36:37 +00:00
tsocket_guide.txt lib:tsocket: Fix code spelling 2023-04-14 05:25:33 +00:00
tsocket_helpers.c lib/tsocket: Free subreq as soon as possible 2021-07-08 10:21:25 +00:00
tsocket_internal.h
tsocket.c
tsocket.h tsocket: Fix code spelling 2023-08-14 04:57:34 +00:00
wscript tsocket: Fix the build on FreeBSD 2022-12-12 21:16:33 +00:00