Skip to content

Pika with Python select? #1459

Answered by ereastin-smx
ereastin-smx asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the quick reply, have been working on this today and had some success adding the other file descriptors into the pika ioloop. Basically, before calling .ioloop.start() on the connection you can use .ioloop.add_handler(fd, handler, events), (line 513 in file linked above) getting fd from the socket/serial connection .fileno() method and adding a handler callback that accepts the fileno and event type as args. Works well enough, much appreciated Luke!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lukebakken
Comment options

Answer selected by lukebakken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants