Opens profile photo
Follow
Click to Follow marcelotryle
Marcelo Trylesinski
@marcelotryle
Software Engineer ๐Ÿง‘๐Ÿปโ€๐Ÿ’ป๐Ÿ‡ง๐Ÿ‡ท๐Ÿ‡บ๐Ÿ‡พ๐Ÿ‡ฎ๐Ÿ‡น๐Ÿ‡บ๐Ÿ‡ฆ Uvicorn & Starlette maintainer ๐Ÿฆ„๐ŸŒŸ FastAPI Expert โšก
Utrecht, Netherlandskludex.github.io/blog/Joined March 2020

Marcelo Trylesinskiโ€™s Tweets

Interested in @marcelotryle's Tweets?

Turn on account notifications to keep up with all new content. Opting out is easy, so give it a try.
Why `asyncio.sleep` is not reliable? Can someone help me understand why when testing with sleep, and considering that I'm retrieving the time from time.time(), sometimes I get that it slept less than the time I expected, or far more than that...
4
2
Show this thread
I'm writing a blog post about logging with Uvicorn. Is there any setup that you've found, or created yourself that you would truly recommend?
6
33
Answering my own question: Checking the size is enough to prevent DoS attack. ๐Ÿ™ Maybe the reason for gunicorn to implement this logic was to have an even earlier stop point (?). I don't know. ๐Ÿ‘€
Quote Tweet
Should an HTTP/1.1 server check the number of headers in the request, or checking the size is enough, to prevent DDoS attacks? Gunicorn doesn't explain: docs.gunicorn.org/en/stable/sett
Show this thread
4
Hmmm.. I was not watching uvloop releases ๐Ÿ˜” As uvicorn doesn't pin the higher version, the new uvloop version is already supported.
Quote Tweet
uvloop 0.17 is here thanks to @fantix! โœ… Python 3.11 support โœ… Expose libuv's `uv_loop_t` pointer to make deeper and more low-level extensions possible โœ… Many bug fixes and improvements across the board github.com/MagicStack/uvl
8