Ben Darnell

Results 362 comments of Ben Darnell

Yeah, something like @ploxiln's approach is what I'd do. I don't think there have been any noteworthy changes between Tornado 4 and 5 here. It all depends on what "gracefully"...

We already have a solution for the SyntaxError problem: prefix your command with "python -m tornado.autoreload". This handles not just the syntax errors that can be detected with py_compile, but...

There is a race condition in the command-line version of autoreload - if a file changes immediately after it's been loaded with a syntax error, that version will be seen...

> It's probably best to address this problem outside of the autoreload system. FWIW, I no longer believe this. There are plenty of ways that an incomplete file can be...

Are you also using `yield` in whatever function is calling `send_message`? You have to use `yield` at every level to get appropriate flow control. But if the client is getting...

I can't answer that from the little information you've provided. You'll have to learn how to use your profiling tool to answer that question yourself.

@3shao and @jbwdevries , can you provide a sample program that demonstrates this issue? As @ploxiln 's code from Oct 19 shows, not all programs that use websockets result in...

And what about the client side? In that program you're spawning a new `doWithData` task every time you receive a message. That task contains a loop, so after the first...

The AsyncHTTPClient class is unusual: it secretly reuses a single client object instead of creating a new one each time. This means that in general you're *not* supposed to close...

> I have tried the first approach, where I simply define AsyncHTTPClient before each call. This resulted in my application being overloaded and choking its network access That's not supposed...