Yury Selivanov

Results 403 comments of Yury Selivanov

NODELAY should be set by default btw.

Well, asyncio in Python 3.6 (and 3.5.3) sets `NODELAY` by default and so should we. It's really up to those who use advanced TCP settings to workaround that.

Moreover, I hope we can use (eventually) vectorized writes in `tokio.Transport.write()` and `.writelines()`, which should cover use cases for `CORK`.

Does tokio create its own rust Tasks? Why not Futures instead?

Yes, we do, after I finish on my current PEP, I'll switch to working on a PEP for asyncio improvements in 3.7. `loop.current_task()` will be a part of it.

I'd at least consider deprecating the project in favour of asyncpg.

I don't have time to work on this, unfortunately. If you want you can submit a PR along with brief explanation/motivation and functional tests. @elprans and I would be happy...

> because in that case the handler isn't getting called from the Task \_\_del__ It's possible to fix -- see the attached future.patch. And perhaps this should be fixed in...

I see your points, but we're talking about BaseExceptions here -- KeyboardInterrupt, SystemExit etc. Those things usually mean that the program has to crash.

Trapping those exceptions in \_\_del__ isn't good. Another way to address this would be to at least modify call_exception_handler to log when an exception handler raises a BaseException error.