On Thursday, 30 August 2012 at 14:46, Jan Grec wrote:
> The problem then, is how to handle a client's CTRL-C when what we want it to
> mean is 'hey server! stop processing this client request!'?
> 
> Right now, CTRL-C kills the client, as expected, but what needs to be done
> so that the client can also pass the message along to the server that it
> needs to kill the request on the server side as well?


Interrupt / signal handler?

http://stackoverflow.com/questions/1112343/how-do-i-capture-sigint-in-python
 
> 
> I've created some example to illustrate the problem:
> simple server: http://pastebin.com/t2mk6jSQ
> simple client: http://pastebin.com/2LyTkpmU
> some notes: http://pastebin.com/371VxiE1
> 
> I'm out of ideas. If you have a solution or idea how to solve this,
> I'd be very thankful.

-- 
Justin Cook



_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to