0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 01:59:33 +02:00

modules/media: Increase download timeout; compensate handler coarse timeout.

This commit is contained in:
Jason Volk 2020-05-18 15:39:41 -07:00
parent bb52cbd2d1
commit 081e4eb567
3 changed files with 29 additions and 5 deletions

View file

@ -163,11 +163,23 @@ get__download_local(client &client,
static m::resource::method
method_get
{
download_resource, "GET", get__download
download_resource,
"GET",
get__download,
{
m::resource::method::flag(0), // flags
45s, // timeout
}
};
static m::resource::method
method_get__legacy
{
download_resource__legacy, "GET", get__download
download_resource__legacy,
"GET",
get__download,
{
m::resource::method::flag(0), // flags
45s, // timeout
}
};

View file

@ -344,7 +344,7 @@ decltype(ircd::m::media::download_timeout)
ircd::m::media::download_timeout
{
{ "name", "ircd.media.download.timeout" },
{ "default", 15L },
{ "default", 30L },
};
std::pair

View file

@ -150,13 +150,25 @@ get__thumbnail(client &client,
static m::resource::method
method_get__legacy
{
thumbnail_resource__legacy, "GET", get__thumbnail
thumbnail_resource__legacy,
"GET",
get__thumbnail,
{
m::resource::method::flag(0), // flag
45s, // timeout
}
};
static m::resource::method
method_get
{
thumbnail_resource, "GET", get__thumbnail
thumbnail_resource,
"GET",
get__thumbnail,
{
m::resource::method::flag(0), // flag
45s, // timeout
}
};
static m::resource::response