Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/nonebot/nonecorn
ASGI server that forked from hypercorn, with extra features beyond asgi spec
https://github.com/nonebot/nonecorn
The asyncio worker class code is moved into a asyncio directory solely
to facilitate another wor...
90bdc960cafddd974583150c3495e0587b02749b authored over 6 years ago
This allows the worker class to be specified as either asyncio, or
uvloop currently but with mor...
Ensure the artwork is present in the mainfest.
687d8c1243e8ab734f0d9a0f23c0df5fcd4c3bfc authored over 6 years agoThis is made with help from the vecteezy.com and stet.io editors.
1115d71fa624072940a0b065bdb40de70be8a7be authored over 6 years ago
Quart will use loop = None which causes issues, as this was previously
allowed. This will act as...
1b2a5d9a17f25e095619bbbf29f7e51ee1083fc5 authored over 6 years ago
Missed some run_single usages.
67b0e46856664045d6f30d6e2106e1dce609d628 authored over 6 years ago
This ensures that any asyncio primitives created with the app are
aware of the correct (fully co...
b47f44091f1dddb762d3cdca8e67c67b25356a41 authored over 6 years ago
4f52a9057ffe11b9a00850a474b42693121a4c4d authored over 6 years ago
783f75f7a0f4f19462008397ca24457ec79aadf5 authored over 6 years ago
This allows the workaround for the connection header to be removed as
well as the pinning of h11.
This is especially useful well working with systemd as it allows a
systemd created socket to be ...
This simply writes the master PID to a specified file.
2171f791443ee5c5f1571ce45316b150562eeca1 authored over 6 years agoSometimes an empty message is sent
45279bfdfa0114dffd688b86ffab747e7d752f4d authored over 6 years ago
This matches the ASGI specification "[the server] should raise an
exception out of the send awai...
The hosting should be printed whether explicitly set in a bind or not.
92b1a109315fb410d8f92fe3c039a8ee4e967490 authored over 6 years ago
By default Hypercorn uses the minimum value, roughly matching the h11
max incomplete size value.
This ensures that the SSL context has the correct configuration in
terms of disabled versions an...
efd5aabd39ba2ed1eaae40237ba5aa0778db43dd authored over 6 years ago
This is new to the ASGI specification, and should help applications
understand what ASGI specifi...
The body should be bytes.
e83ed97ec8e7387a49cb18841cf92c7643c70b25 authored over 6 years agoEnsure that websocket connections are not killed by the timeout.
32ee7e0d1003b61c4f1194c8f64d2a6408a32418 authored over 6 years ago
This will now timeout if a request isn't received within the keep
alive timeout as opposed to ti...
As h2 allows headers to be sent to it in bytes form, and returns
headers in bytes form and as AS...
This ensures that there is a graceful shutdown when the master
receives a SIGTERM, and that kill...
This is a request feature that makes Hypercorn easier to use on unix
systems.
This was originally intended but not implemented. This allows
hypercorn to be invoked with a fil...
118f6ab2049480121f8731890ec68a3f66610e37 authored over 6 years ago
This partially reverts b9ea2230d952b75aff93355cdcd825b9ba2a9dd1 in
order to support multiple wor...
This should ensure that the cleanup code is always triggered before
the process exists. It may n...
These were failing due to variables being used before they were
defined and then a lack of the c...
This sets the level to INFO, as Gunicorn does - so seems like a
sensible default.
This ensures that the shutdown code is completed before the process is
killed and restarted. Thi...
The reloading mechanism is hacky and really only suitable for
development with a single worker.
This should fix the error being seen in CI due to
b8ae2510da40cf465286eb6d4ef78cf9635aec89 not f...
This will allow for a user to configure SSL as they like in relation
to the ALPN protocols adver...
088bab2c151cbb77b68f42078179c8f313f3f4bb authored over 6 years ago
Previously there was no (easy/obvious) way to set the SSL settings
from a configuration file and...
I think this can only apply to the `ssl` module given the name match,
however this should stop t...
607d93520ca2727a65edd06407350660276bda31 authored over 6 years ago
The latter is preferred when a future isn't required and the loop is
available.
This exists for servers to set the date header, and is hence correct
and likely to remain so.
The ASGI specification states that the query_string value in the scope
should be everything afte...
Now that it has been released.
62318cfd6e16954f64622c5ddacc95bbaa26a51b authored over 6 years ago4a231da634a3568a02fd577019b734619b0ca343 authored over 6 years ago
The sys_args argument should be Optional in order to work as an entry
point. It existed to allow...
5db4f960d2bcf4fed20a2256b310f39b56c7742a authored over 6 years ago
This should ensure that the arguments set in the config is only
overridden by actuall command li...
2c1d24e1f20a2191d4d7326f7b939adae49f28c6 authored over 6 years ago
The previous version of the ASGI specification incorrectly suggested
they should be a list of tu...
The ASGI specification for websockets states the bytes key value
should either be None or bytes,...
The previous version never set the log target. Note the logging still
needs work as only one tar...
Normally, components are expected to use the default loop
unless explicitly provided one (also q...
This follows the Daphne usage whereby it is specifiable via the
configuration.
These should be a List[Tuple[str, int]] regardless of IPv4 or IPv6, it
isn't clear what it shoul...
This allows frameworks calling ``await send`` to also unblock and
therefore cleanup when the con...
This allows for the command line argument ``-c`` or ``--config`` to be
used to specify a TOML or...
This better matches the expected behaviour.
9b22f5048bb623cc2b07586ddb78ec03de271777 authored over 6 years ago512aef665b960d6048db0df920eccec0ec118b48 authored over 6 years ago
4a8a3df76b0f1659e530353cacf58d15511dcf03 authored over 6 years ago
Empty bytes (b'') are common with ASGI as it indicates the other parts
of the message are key. S...
The remaining serving rather than framework relevant documention in
Quart is moved to Hypercorn ...
Avoid an UnboundLocalError in logging
See merge request pgjones/hypercorn!2
e3368154bcda5c8148e87cffb2104725addd0ded authored over 6 years agoFix ssl: values from 'args' instead of hardcoded
See merge request pgjones/hypercorn!1
f59c91d9b83262c842942141503ba0a1093a27e4 authored over 6 years ago30d0467c731849d619a517387c6536bb8e722459 authored over 6 years ago
d2d7906a24d15900845cbae8fe03879f639b4332 authored over 6 years ago
Logging is an expensive operation (even if there is no handler to log
to).
These changed during the ASGI review, and I forgot to update
Hypercorn.
This allows frameworks to have startup and cleanup (before any serving
and after all serving) co...
This allows for better utilisation of a machine as it likely has more
than one CPU. Hence a proc...
d57105b8079f83a26d38f3f3a3b72d84440310f3 authored over 6 years ago
This sets up basic documentation and also clarifies some config values
to match the documented v...
This follows a similar refactor to the h11 and h2 in
448087102ba6b6f2744cd59aa9d44936fcc73f81, t...
Cryptography isn't compatible with the latest libressl.
602fe5ee9245fc4c8a0e380db46442c9983caad8 authored over 6 years ago
This should help ASGI Framework authors ensure that backpressure is
correctly dealt with, withou...
uvloop is a fast implementation of the event loop, it can be
optionally used by installing `hype...
c53d64610326d6766708863fbe47c31ff233c896 authored over 6 years ago
This fixes a bug in 8efe627e8924f5f9611ffb492b416b62671d5835 whereby a
correct framework StreamE...
Missed in 448087102ba6b6f2744cd59aa9d44936fcc73f81
bcf88817175b78577935a2ad792e357bee3af66b authored over 6 years ago
These exceptions are handled by closing the connection if h11 or
stream if h2. This allows the s...
This covers most (all?) of the desired settings for SSL with naming
matching Gunicorn.
This removes the inheritance from the http module for h11 and h2 on
the grounds that it made the...
These are incomplete, e.g. bind only considers the first supplied
value. This should provide the...
This takes the serving code from Quart 0.5.0 and turns it into a
working ASGI server. This will ...