broken pipe

hi support
how we handle the broken pipe in threadx.ie how we detect if other side of the socket connection is closed ?..

How are you creating the pipe? Are you referring to a network pipe? I know that in NetOS 6 that does not work very well. In fact I had to hack around it. Very unstable.

If you are just calling it a pipe and it really is just a socket connection, then recv() will return 0 on a blocking connection to indicate a disconnect, or on a nonblocking connection use select().

-Erik