A grep shows MSG_DONWAIT is still used in ipcsocket.c and IPV6addr.c. I
will have it fixed.
thanks for reminding.
-Guochun
Steven Dake wrote:
Folks,
Joe is porting openais to bsd (and Darwin). During this process, we
found a problem with the portability of our ipc layer because of the
fact that sendmsg doesn't honor the MSG_DONTWAIT flag. A quick google
search brought up this thread with the same problem in linux-ha:
http://www.gossamer-threads.com/lists/linuxha/dev/22220
The fix in this thread was to increase the buffer size of the send queue
in the kernel. A more portable fix is to set the O_NONBLOCK flag via
the fcntl syscall. This seems to work properly on Linux and Darwin
(Joe's darwin port now works for me on macosx). Alan mentioned
rewriting the code - i'm not sure if this has been done yet, but if it
hasn't you might keep this tip in mind.
Regards
-steve
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/