mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
Http: Set a sane default connection timeout
This commit is contained in:
parent
0ac4d13015
commit
17c2f3d813
2 changed files with 11 additions and 0 deletions
|
@ -55,6 +55,8 @@ public:
|
|||
Http& operator=(const Http &) = delete;
|
||||
Http& operator=(Http &&) = delete;
|
||||
|
||||
// Sets a maximum connection timeout in seconds
|
||||
Http& timeout(long timeout);
|
||||
// Sets a maximum size of the data that can be received.
|
||||
// A value of zero sets the default limit, which is is 5MB.
|
||||
Http& size_limit(size_t sizeLimit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue