[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cancel read on socket
- Date: Wed, 28 May 2008 10:55:21 -0500
- From: joel.sherrill at OARcorp.com (Joel Sherrill)
- Subject: Cancel read on socket
Chris Johns wrote:
> Joel Sherrill wrote:
>> Without thinking about compatibility at all, shouldn't it be
>> possible to add an RTEMS specific IOCTL which forced
>> a read() to return an error like ECANCELED?
> I do not think this is a good idea. Other ways to solve this problem have been
I wasn't advocating adding something non-standard as much as
I was wondering what the mechanism to get CANCELED
returned and whether there was a standard mechanism
that should have been available to do this.
I found a reference to using signals to interrupt the read.
But that would require (1) to be enabled and (2) it to
work (which it might or might not already). Under the hold, we
would still have to be able to cancel the operation
effectively returning EINTR.
Apple has some developer documents on "socketcancel.txt"
which also make reference to a cancellation socket.
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985