Socket.select interrupted system call because of GC

Marek Janukowicz marek at janukowicz.net
Sun Aug 4 08:32:09 PDT 2013


David Nadlinger wrote:
> See
> 
https://github.com/apache/thrift/blob/master/lib/d/src/thrift/server/transport/socket.d#L144
> for a production-tested implementation. When I wrote that code,
> it wasn't possible to do this in a platform-independent way using
> std.socket (see
> 
https://github.com/apache/thrift/blob/master/lib/d/src/thrift/internal/socket.d
> for the used constants), and I don't think it is now either.

Thanks, I'll use this as my starting point. I'm concerned, however, that 
even though SA_RESTART option is set the interrupted call is not being 
restarted, but you need to handle that yourself.

-- 
Marek Janukowicz


More information about the Digitalmars-d-learn mailing list