Taylor R Campbell 253a001ebc Fix use of accept() in test socks4a proxy.
The read() in readall() to read the SOCKS4a request was sometimes
failing with EAGAIN, which it wasn't prepared for, causing the
request to be rejected and the test to fail.

I wrote this code specifically under the assumption the fd would be
in blocking mode, and in the original draft I wrote with stdin/stdout
under socat that was true.  But when I adapted this to do its own
bind/listen/accept logic, I broke it, because POSIX leaves it
unspecified whether accept() inherits the O_NONBLOCK setting or not:

https://pubs.opengroup.org/onlinepubs/9799919799/functions/accept4.html

And the traditional BSD semantics is to inherit O_NONBLOCK.

So, just explicitly clear O_NONBLOCK on the fd returned by accept().
2026-01-21 10:35:22 -06:00
2026-01-18 19:06:17 -06:00
2026-01-20 16:05:36 -06:00
2026-01-20 13:48:25 -06:00
2024-09-04 10:24:44 -04:00
2004-02-12 14:19:16 +00:00
2000-06-07 10:01:25 +00:00
2002-08-21 13:29:08 +00:00
2024-06-16 23:30:48 -04:00
2024-06-16 23:30:48 -04:00
2024-06-16 23:30:48 -04:00
2019-06-07 22:03:05 -04:00
2026-01-18 19:06:17 -06:00
2023-01-12 10:19:35 -06:00
2014-08-23 19:14:10 -07:00
2026-01-07 17:49:17 -06:00
2020-06-26 11:29:15 -04:00
2019-06-09 13:43:47 -04:00
2010-01-05 19:21:45 +01:00

GitHub Build Workflow GitHub Build Workflow GitHub Build Workflow

Heimdal

Heimdal is an implementation of:

  • ASN.1/DER,
  • PKIX, and
  • Kerberos.

For information how to install see here.

There are man pages for most of the commands.

Bug reports and bugs are appreciated. Use GitHub issues.

For more information see the project homepage https://heimdal.software/heimdal/ or the mailing lists:

heimdal-announce@heimdal.software low-volume announcement heimdal-discuss@heimdal.software high-volume discussion

send mail to heimdal-announce-subscribe@heimdal.software and heimdal-discuss-subscribe@heimdal.software respectively to subscribe.

Build Status

GitHub Build Workflow GitHub Build Workflow GitHub Build Workflow

Languages
C 91.5%
Roff 3.2%
Shell 2.8%
Makefile 0.6%
M4 0.6%
Other 1.1%