|Subject:||new feature for HTTP::Body::OctetStream - use memory buffer instead temp file for small bodies|
|Date:||Tue, 24 Nov 2015 19:11:46 +0300|
|To:||bug-http-body [...] rt.cpan.org|
|From:||Сергей Журавлёв <zhurs [...] yandex.ru>|
Hello, We have json API, built using Plack, so every request have Content-Type: application/json. Plack uses HTTP::Body, that choose HTTP::Body::OctetStream for this type of requests, and create new temporary file for each request. It hurts performance of our service. So, I make patch, which uses PerlIO if body is small and File::Temp for big queries. Also it is possible to tune behaviour through shared variable MAX_BUFFER_SIZE. Please, consider to include patch into distribution.
Message body is not shown because sender requested not to inline it.