AF_UNIX/SOCK_DGRAM is dropping messages

Ken Brown kbrown@cornell.edu
Wed Mar 31 15:07:01 GMT 2021


On 3/31/2021 4:24 AM, sten.kristian.ivarsson@gmail.com wrote:
> [snip]
>>>>> Using AF_UNIX/SOCK_DGRAM with current version (3.2.0) seems to drop
>>>>> messages or at least they are not received in the same order they
>>>>> are  sent
> 
> [snip]
> 
>> Thanks for the test case.  I can confirm the problem.  I'm not familiar enough
>> with the current AF_UNIX implementation to debug this easily.  I'd rather
>> spend my time on the new implementation (on the topic/af_unix branch).  It
>> turns out that your test case fails there too, but in a completely different way,
>> due to a bug in sendto for datagrams.  I'll see if I can fix that bug and then try
>> again.
>>
>> Ken
> 
> Ok, too bad it wasn't our own code base but good that the "mystery" is verified
> 
> I finally succeed to build topic/af_unix (after finding out what version of zlib was needed), but not with -D__WITH_AF_UNIX to CXXFLAGS though and thus I haven’t tested it yet
> 
> Is it sufficient to add the define to the "main" Makefile or do you have to add it to all the Makefile:s ? I guess I can find out though

I do it on the configure line, like this:

   ../af_unix/configure CXXFLAGS="-g -O0 -D__WITH_AF_UNIX" --prefix=...

> Is topic/af_unix fairly up to date with master branch ?

Yes, I periodically cherry-pick commits from master to topic/af_unix.  I'll do 
that again right now.

> Either way, I'll be glad to help out testing topic/af_unix

Thanks!

Ken


More information about the Cygwin mailing list