Server returns response only when it receives a new request

Skip to first unread message

Mehdi Khlifi

Oct 23, 2020, 6:35:11 AM10/23/20
to Tornado Web Server

I'm using Tornado behind Nginx inside Kubernetes pods, and I have this issue:
- Let's say I sent a request to the server, it processes it and I can see in the log that the request is finished, but I can ONLY get/see a response if the server receives a new request (Not necessarily to the service), it could be any request.

What could be causing this?

Ben Darnell

Oct 25, 2020, 3:20:26 PM10/25/20
to Tornado Mailing List
That's very strange. One thing I can think of that could cause this is misuse of threads - if you call self.write or self.finish from another thread, the outgoing data may not be written until something else wakes up the IOLoop thread. Remember that IOLoop.add_callback is the only thread-safe method in Tornado (


You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages