Skip to content

v.0.6.12

Compare
Choose a tag to compare
@eao197 eao197 released this 10 Nov 06:21
· 224 commits to master since this release

A new method incoming_http_msg_limits added to restinio::server_settings_t. This method allows to set up limits for the maximum length of various parts of an incoming HTTP message (like URL, HTTP-field’s name and value):

struct my_traits : public restinio::default_traits_t { ... };

restinio::server_settings_t<my_traits> settings;
settings.incoming_http_msg_limits(
   restinio::incoming_http_msg_limits_t{}
      .max_url_size(8000u)
      .max_field_name_size(2048u)
      .max_field_value_size(4096u)
);
...
auto server = restinio::run_async(
   restinio::own_io_context(),
   std::move(settings),
   std::thread::hardware_concurrency());

A possibility to limit the number of parallel connection has been added:

struct my_traits : public restinio::default_traits_t {
   // Force the usage of connection count limiter.
   static constexpr bool use_connection_count_limiter = true;
};

restinio::server_settings_t<my_traits> settings;
settings.max_parallel_connections(1000u);
...
auto server = restinio::run_async(
   restinio::own_io_context(),
   std::move(settings),
   std::thread::hardware_concurrency());

A support for SObjectizer 5.6/5.7 has been added. Now RESTinio can be user either with SObjectizer 5.5 and SObjectizer 5.6/5.7. The version of SObjectizer is detected automatically. But if a user wants to use SObjectizer 5.6/5.7 he/she should set C++ standard to C++17 manually.