POSIX error: Broken pipe
POSIX error: Broken pipe
- Subject: POSIX error: Broken pipe
- From: "samiam work" <email@hidden>
- Date: Mon, 21 May 2007 20:28:02 -0700
I've written a basic client and server pair of programs (using
NSStreams) and everything works fine except I'll occasionally get the
NSStreamEventErrorOccurred event for both input and output streams but
everything seems to work fine even when I ignore the message. I'm
wondering, what's causing this and how I can fix it or maybe this is
normal and I can just ignore it.
To give more specific info the sequence of events goes like this:
1) connect with client.
2) client receives a small amount of info FROM the server (~10 bytes).
3) client sends a small amount of info TO the server (~70 bytes).
4) client disconnects.
5) client connects again.
6) client receives a small amount of info FROM the server (~100 bytes).
7) client sends data TO server (~10 bytes ).
8) wait 2 seconds
9) client sends data TO server (~10 bytes ). Server does receive the
data properly.
10) both input and output streams get NSStreamEventErrorOccurred with
"POSIX error: Broken pipe"
After the broken pipe error I can go on like normal and on the surface
everything works just fine. The client can still send data and the
server will receive it just fine (although I still will get the same
error on occasion). It doesn't seem like a problem at all but I get
the error anyway. Any ideas? I'd rather not just ignore it.
Thanks,
Sam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden