Fixes #293: added workaround for MSVC max bug

This commit is contained in:
eidheim 2020-04-03 11:10:40 +02:00
commit ebeafc989e
2 changed files with 2 additions and 2 deletions

View file

@ -142,7 +142,7 @@ namespace SimpleWeb {
long timeout_connect = 0; long timeout_connect = 0;
/// Maximum size of response stream buffer. Defaults to architecture maximum. /// Maximum size of response stream buffer. Defaults to architecture maximum.
/// Reaching this limit will result in a message_size error code. /// Reaching this limit will result in a message_size error code.
std::size_t max_response_streambuf_size = std::numeric_limits<std::size_t>::max(); std::size_t max_response_streambuf_size = (std::numeric_limits<std::size_t>::max)();
/// Set proxy server (server:port) /// Set proxy server (server:port)
std::string proxy_server; std::string proxy_server;
}; };

View file

@ -340,7 +340,7 @@ namespace SimpleWeb {
long timeout_content = 300; long timeout_content = 300;
/// Maximum size of request stream buffer. Defaults to architecture maximum. /// Maximum size of request stream buffer. Defaults to architecture maximum.
/// Reaching this limit will result in a message_size error code. /// Reaching this limit will result in a message_size error code.
std::size_t max_request_streambuf_size = std::numeric_limits<std::size_t>::max(); std::size_t max_request_streambuf_size = (std::numeric_limits<std::size_t>::max)();
/// IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation. /// IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation.
/// If empty, the address will be any address. /// If empty, the address will be any address.
std::string address; std::string address;