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:
parent
bb52cbd2d1
commit
081e4eb567
|
@ -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
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue