From: Mark Geisert <mark@maxrnd.com>
To: cygwin-developers@cygwin.com
Subject: Re: python > 3.5: Issue with unix domain sockets
Date: Tue, 4 May 2021 22:04:15 -0700 [thread overview]
Message-ID: <d43af9c3-a1c8-8e87-20c4-bd5642675ffa@maxrnd.com> (raw)
In-Reply-To: <YJE9xltXzlOoLF6a@calimero.vinschen.de>
Corinna Vinschen wrote:
> On May 4 02:45, Mark Geisert wrote:
>>[blah blah...]
> You're supposed to call the special setsockopt(SO_PEERCRED) on the
> accepting socket. The no_getpeereid property is inherited by the
> accepted socket.
Ah, of course. Well, I couldn't figure out a way to do the setsockopt() call some
times but not others, because Python can't reach into the Cygwin DLL. Nor should it.
Since this Python patch is supposed to be a temporary workaround, I took the tack
that it should just ignore an error return from setsockopt(SO_PEERCRED). In this
fashion the handshake will be turned off when it can be, and when it can't (on the
accepted socket) the attempt will error but that error will be ignored.
Thanks for the sanity check!
..mark
next prev parent reply other threads:[~2021-05-05 5:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1620046759893.5340@bmw.de>
[not found] ` <2cde4128-6a3d-7431-6608-a2184d23964a@cornell.edu>
[not found] ` <af597ace-e986-35a0-9983-99256c440791@maxrnd.com>
2021-05-04 9:45 ` Mark Geisert
2021-05-04 12:27 ` Corinna Vinschen
2021-05-05 5:04 ` Mark Geisert [this message]
2021-05-06 8:35 ` Corinna Vinschen
2021-05-06 9:24 ` Mark Geisert
2021-05-06 10:30 ` Corinna Vinschen
2021-05-06 12:18 ` Marco Atzeri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d43af9c3-a1c8-8e87-20c4-bd5642675ffa@maxrnd.com \
--to=mark@maxrnd.com \
--cc=cygwin-developers@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).