ResEnv / chain-api

RESTful sensor API
MIT License
39 stars 16 forks source link

Made websocketsd more efficient #57

Closed kkleidal closed 9 years ago

kkleidal commented 9 years ago

implemented select loop for non-blocking reading from ZMQ sockets blocks read on all WS sockets (XXX: uses many threads; find better ws library that allows select loops) Uses one ZMQ socket per tag rather than one ZMQ socket per WS connection

This is a possible step on the way to fixing #51 , but since I haven't replicated the bug presented in #51, it still needs to be tested in practice. And there is still room for improvements.