p-hennessy / Bolt

All the parts for building a Discord robot
https://docs.bolt.bot/
MIT License
8 stars 6 forks source link

Phantom block with Websocket #71

Open p-hennessy opened 6 years ago

p-hennessy commented 6 years ago

Occasionally it will take a second for the bot to respond to a chat message. It looks like something is preventing the websocket library from running the handler code for the request so it just sits in the buffer until we send something else in.

This is mildly annoying but is tolerable because the heart beat will make it refresh.

Would be nice to know what is happening with that

p-hennessy commented 6 years ago

Trying to stuff as many gevent.sleeps as i can where it makes sense to do so.

It may have something to do with how im pull tasks off the queue, it blocks until all workers try and timeout to pull work from the queue.