@@ -161,7 +161,10 @@ typedef lib::function<void(lib::error_code const & ec)> write_frame_handler;
161
161
* @todo Move this to configs to allow compile/runtime disabling or enabling
162
162
* of protocol versions
163
163
*/
164
+ #pragma warning(push)
165
+ #pragma warning(disable : 4592)
164
166
static std::vector<int > const versions_supported = {0 ,7 ,8 ,13 };
167
+ #pragma warning(pop)
165
168
#else
166
169
// / Helper array to get around lack of initializer lists pre C++11
167
170
static int const helper[] = {0 ,7 ,8 ,13 };
@@ -534,7 +537,7 @@ class connection
534
537
535
538
// / Get maximum message size
536
539
/* *
537
- * Get maximum message size. Maximum message size determines the point at
540
+ * Get maximum message size. Maximum message size determines the point at
538
541
* which the connection will fail with the message_too_big protocol error.
539
542
*
540
543
* The default is set by the endpoint that creates the connection.
@@ -544,11 +547,11 @@ class connection
544
547
size_t get_max_message_size () const {
545
548
return m_max_message_size;
546
549
}
547
-
550
+
548
551
// / Set maximum message size
549
552
/* *
550
- * Set maximum message size. Maximum message size determines the point at
551
- * which the connection will fail with the message_too_big protocol error.
553
+ * Set maximum message size. Maximum message size determines the point at
554
+ * which the connection will fail with the message_too_big protocol error.
552
555
* This value may be changed during the connection.
553
556
*
554
557
* The default is set by the endpoint that creates the connection.
@@ -563,7 +566,7 @@ class connection
563
566
m_processor->set_max_message_size (new_value);
564
567
}
565
568
}
566
-
569
+
567
570
// / Get maximum HTTP message body size
568
571
/* *
569
572
* Get maximum HTTP message body size. Maximum message body size determines
@@ -579,7 +582,7 @@ class connection
579
582
size_t get_max_http_body_size () const {
580
583
return m_request.get_max_body_size ();
581
584
}
582
-
585
+
583
586
// / Set maximum HTTP message body size
584
587
/* *
585
588
* Set maximum HTTP message body size. Maximum message body size determines
@@ -683,14 +686,14 @@ class connection
683
686
* @return An error code
684
687
*/
685
688
lib::error_code interrupt ();
686
-
689
+
687
690
// / Transport inturrupt callback
688
691
void handle_interrupt ();
689
-
692
+
690
693
// / Pause reading of new data
691
694
/* *
692
- * Signals to the connection to halt reading of new data. While reading is paused,
693
- * the connection will stop reading from its associated socket. In turn this will
695
+ * Signals to the connection to halt reading of new data. While reading is paused,
696
+ * the connection will stop reading from its associated socket. In turn this will
694
697
* result in TCP based flow control kicking in and slowing data flow from the remote
695
698
* endpoint.
696
699
*
@@ -702,7 +705,7 @@ class connection
702
705
*
703
706
* If supported by the transport this is done asynchronously. As such reading may not
704
707
* stop until the current read operation completes. Typically you can expect to
705
- * receive no more bytes after initiating a read pause than the size of the read
708
+ * receive no more bytes after initiating a read pause than the size of the read
706
709
* buffer.
707
710
*
708
711
* If reading is paused for this connection already nothing is changed.
@@ -1357,7 +1360,7 @@ class connection
1357
1360
* Includes: error code and message for why it was failed
1358
1361
*/
1359
1362
void log_fail_result ();
1360
-
1363
+
1361
1364
// / Prints information about HTTP connections
1362
1365
/* *
1363
1366
* Includes: TODO
@@ -1506,7 +1509,7 @@ class connection
1506
1509
1507
1510
// / Detailed internal error code
1508
1511
lib::error_code m_ec;
1509
-
1512
+
1510
1513
// / A flag that gets set once it is determined that the connection is an
1511
1514
// / HTTP connection and not a WebSocket one.
1512
1515
bool m_is_http;
0 commit comments