Problem with socketpair , AF_UNIX and select call - can anybody through any light on this!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a piece of code that is listening to multiple incoming communications channels over UDP and TCP. This code has set the sockets non-blocking and is using select with a time-out to detect when there is I-O traffic to process.

I wanted to add a socketpair connection from the master process to the servers which implement the actual functionality. I created the socketpair, set both ends non-blocking and added it to the select set of fd's. I get an immediate return saying that the socket is ready to read but when I issue a recv I get -1 (EAGAIN). Nothing I have tried sets the required behaviour of only returning when there is 'real' data to read.

Anybody seen this, is it a known problem with Linux kernels? (I am currently running 2.6.22.9-91.fc7)

Is there a known work round. I am currently thinking of replacing the AF_UNIX socket pair with a mesh of AF_INET/SOCK_DGRAM/localhost channels.

Regards, Howard.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux