tqchen commented on pull request #6953:
URL: https://github.com/apache/tvm/pull/6953#issuecomment-747647080


   I put some time to think about this, thanks to @rkimball @areusch for great 
discussions. Here is one possible solution:
   
   - Add a TypedPackedFunc field `eintr_handle` to the Socket which can be 
called to check whether we should retry when facing eintr. default to nullptr 
and no retry.
   - Setup a global PackedFunc registry `runtime.socket.SignalHandler` that 
returns a PackedFunc to set into the socket, call it during socket construction 
in RPC server.
   - Register when we are in python env during initialization.
   
   Let me know if that makes sense
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to