Hi,

I'm currently working on the connection interface.
I will add MSG_NOSIGNAL in Socket::send and Socket::sendTo

Marcus

Robert Hinn wrote:


Hi again,

I've noticed that when you set up a connection via the Connection class (as used in RemoteAspect, etc.), then you get "broken pipe" signals when you try reading data while the other end of the connection has disconnected. According to the recv() documentation, this behaviour can be turned off by using MSG_NOSIGNAL as a flag to the recv() call. The Socket class doesn't do this (the flags are set to 0).

Is this behaviour desired? I mean, you'll have to catch signals in your application to avoid crashes if the other end of a network connection disconnects... Wouldn't it be better to use the MSG_NOSIGNAL flag and check the return value of recv() to see if enough data (size) was received, and, if not, throw a SocketError exception?

  Robert

PS: Thanks for the tip about the mailing list search function at sourceforge. I hadn't noticed that since the search field doesn't contain the "mailing list" option if you're not currently browsing a mailing list ;-) Maybe the OpenSG website that lists the links to the mailing lists at sourceforge should put up a note on how to search them (just for people who aren't familiar with the source forge sites... ;-)




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to