[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cancel read on socket
- Date: Wed, 28 May 2008 09:22:27 +0300
- From: leonp at plris.com (Leon Pollak)
- Subject: Cancel read on socket
On Wednesday, 28 ?May 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.
As someone who feels strong interest in this, can I ask the question - why is
this not a good idea?
Again, practice shows that it is not so dangerous, as Windows has CancelIo
function which does this.
And, believe me, my code in the case I described should look much simpler and
straight forward.
Thanks.
--
Leon