Cancel read on socket

Joel Sherrill joel.sherrill at OARcorp.com
Wed May 28 15:55:21 UTC 2008


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
> suggested.
>   
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.
> Regards
> Chris
>
>   


-- 
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





More information about the users mailing list