The HTTP section of the specification was, in spec version 2.4, updated to say this:
If send() is called on a closed connection the server should raise a server-specific subclass of IOError.
However, this appears to contradict the following text which appears in the Error Handling section of the ASGI main specification:
Note that messages received by a server after the connection has been closed are not considered errors. In this case the send awaitable callable should act as a no-op.
Perhaps the main specification should say something like “unless otherwise specified by an individual protocol”?
The HTTP section of the specification was, in spec version 2.4, updated to say this:
However, this appears to contradict the following text which appears in the Error Handling section of the ASGI main specification:
Perhaps the main specification should say something like “unless otherwise specified by an individual protocol”?