0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd::resource::method: Rename delayed response option flag.

This commit is contained in:
Jason Volk 2023-03-02 18:41:32 -08:00
parent 121f9febc7
commit 0907fa08e3
2 changed files with 4 additions and 4 deletions

View file

@ -62,9 +62,9 @@ enum ircd::resource::method::flag
/// If this flag is not set the feature may be used if conditions permit.
DELAYED_ACK = 0x0004,
/// TCP delays will be in use while this method responds to the client on
/// the socket.
DELAYED_RESPONSE = 0x0008,
/// This option prevents TCP nodelay from being toggled at the end of the
/// request to flush the sendq; TCP delays are used by default.
RESPONSE_NOFLUSH = 0x0008,
};
struct ircd::resource::method::opts

View file

@ -616,7 +616,7 @@ try
// good place because the request has finished writing everything; the
// socket doesn't know that, but we do, and this is the place. The action
// can be disabled by using the flag in the method's options.
if(likely(~opts->flags & DELAYED_RESPONSE))
if(likely(~opts->flags & RESPONSE_NOFLUSH))
{
assert(client.sock);
net::flush(*client.sock);