pyicap icon indicating copy to clipboard operation
pyicap copied to clipboard

Easy async support?

Open potchin opened this issue 7 years ago • 1 comments

Not exactly an 'issue' but more of a question.. Is there any easy way to get this running asynchronously? The Sockerserver threading and forking mixins obviously spawn threads/processes for each tcp connection. Is there a dropin async replacement?

potchin avatar Apr 05 '17 19:04 potchin

I found no true drop-in replacement, however there is asyncore, an asynchronous socket framework.

I imagine someone could create an asynchronous mixin to be used with SocketServer, this would be a good drop-in replacement of the currently used threading solution.

We could also just use pure asyncore and decouple PyICAP from the SocketServer library so it easily could be used with both.

I'll try to figure out a working example in the near future.

netom avatar Apr 06 '17 09:04 netom