class Runcobo::RequestTracker

Overview

Stop admission before closing listeners, then wait for admitted requests.

The tracker wraps every handler, so it also releases request-owned uploads when a middleware parses a body and ends the request before an action runs.

Included Modules

Defined in:

runcobo/request_tracker.cr

Constant Summary

UNREAD_BODY_LIMIT = 256 * 1024

Like Go's net/http, read up to this many unread request body bytes after a handler responds early. Clients that send the whole body before reading the response otherwise see a connection reset instead of the response.

Instance Method Summary

Instance Method Detail

def call(context) #

[View source]
def drain(timeout : Time::Span) : Nil #

[View source]
def stop : Nil #

[View source]