passenger 6.0.26 → 6.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +28 -1
- data/CONTRIBUTING.md +2 -2
- data/build/agent.rb +0 -2
- data/build/basics.rb +2 -0
- data/build/common_library.rb +0 -6
- data/build/misc.rb +0 -2
- data/build/schema_printer.rb +0 -2
- data/build/support/cxx_dependency_map.rb +57 -254
- data/dev/copy_boost_headers +3 -14
- data/dev/index_cxx_dependencies.rb +1 -1
- data/doc/AiInstructions.md +112 -0
- data/doc/CxxMockingStrategy.md +42 -0
- data/doc/CxxTestingGuide.md +110 -0
- data/doc/DesignAspects/LimitedGemDependencies.md +22 -14
- data/doc/TempFileHandling.md +15 -0
- data/passenger.gemspec +1 -1
- data/resources/templates/standalone/server.erb +1 -0
- data/src/agent/Core/ApiServer.h +0 -1
- data/src/agent/Core/ApplicationPool/AbstractSession.h +10 -1
- data/src/agent/Core/ApplicationPool/Group/ProcessListManagement.cpp +1 -1
- data/src/agent/Core/ApplicationPool/Group/SessionManagement.cpp +33 -18
- data/src/agent/Core/ApplicationPool/Group.h +0 -1
- data/src/agent/Core/ApplicationPool/Implementation.cpp +0 -3
- data/src/agent/Core/ApplicationPool/Session.h +14 -19
- data/src/agent/Core/ApplicationPool/Socket.h +15 -5
- data/src/agent/Core/ApplicationPool/TestSession.h +74 -15
- data/src/agent/Core/Config.h +2 -34
- data/src/agent/Core/ConfigChange.cpp +1 -41
- data/src/agent/Core/Controller/CheckoutSession.cpp +100 -14
- data/src/agent/Core/Controller/Client.h +0 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/Controller/Hooks.cpp +13 -0
- data/src/agent/Core/Controller/InitRequest.cpp +2 -0
- data/src/agent/Core/Controller/InternalUtils.cpp +12 -0
- data/src/agent/Core/Controller/Request.h +3 -2
- data/src/agent/Core/Controller.h +12 -13
- data/src/agent/Core/CoreMain.cpp +1 -56
- data/src/agent/Core/OptionParser.h +1 -7
- data/src/agent/Core/SecurityUpdateChecker.h +0 -1
- data/src/agent/Watchdog/Config.h +2 -21
- data/src/agent/Watchdog/WatchdogMain.cpp +0 -2
- data/src/apache2_module/ConfigGeneral/AutoGeneratedDefinitions.cpp +0 -20
- data/src/apache2_module/ConfigGeneral/AutoGeneratedSetterFuncs.cpp +0 -60
- data/src/apache2_module/Hooks.cpp +0 -4
- data/src/apache2_module/ServerConfig/AutoGeneratedManifestGeneration.cpp +0 -44
- data/src/apache2_module/ServerConfig/AutoGeneratedStruct.h +0 -52
- data/src/cxx_supportlib/Algorithms/Hasher.cpp +1 -1
- data/src/cxx_supportlib/Algorithms/Hasher.h +4 -7
- data/src/cxx_supportlib/Algorithms/MovingAverage.h +1 -160
- data/src/cxx_supportlib/Constants.h +2 -1
- data/src/cxx_supportlib/DataStructures/StringMap.h +2 -3
- data/src/cxx_supportlib/FileTools/FileManip.h +2 -0
- data/src/cxx_supportlib/Hooks.h +0 -1
- data/src/cxx_supportlib/IOTools/IOUtils.cpp +49 -60
- data/src/cxx_supportlib/IOTools/IOUtils.h +65 -73
- data/src/cxx_supportlib/ServerKit/AcceptLoadBalancer.h +2 -0
- data/src/cxx_supportlib/ServerKit/HttpHeaderParser.h +8 -6
- data/src/cxx_supportlib/StrIntTools/StrIntUtils.h +2 -2
- data/src/cxx_supportlib/SystemTools/SystemMetricsCollector.h +0 -2
- data/src/cxx_supportlib/Utils/FastStringStream.h +7 -7
- data/src/cxx_supportlib/Utils/IniFile.h +24 -25
- data/src/cxx_supportlib/Utils.h +0 -30
- data/src/cxx_supportlib/oxt/detail/tracable_exception_disabled.hpp +4 -0
- data/src/cxx_supportlib/oxt/detail/tracable_exception_enabled.hpp +1 -0
- data/src/cxx_supportlib/oxt/implementation.cpp +41 -2
- data/src/cxx_supportlib/oxt/system_calls.cpp +1 -0
- data/src/cxx_supportlib/oxt/system_calls.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_or_allocator_rebind.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/container_rebind.hpp +23 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +72 -49
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/is_contiguous_container.hpp +15 -11
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/tree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +36 -9
- data/src/cxx_supportlib/vendor-modified/boost/container/flat_map.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/list.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +21 -17
- data/src/cxx_supportlib/vendor-modified/boost/container/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/small_vector.hpp +10 -6
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +8 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/static_vector.hpp +21 -3
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +5 -15
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +73 -14
- data/src/cxx_supportlib/vendor-modified/boost/detail/basic_pointerbuf.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/detail/lcast_precision.hpp +18 -29
- data/src/cxx_supportlib/vendor-modified/boost/function/function_template.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/integer/common_factor_rt.hpp +6 -10
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avl_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bs_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree.hpp +12 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/function_detector.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/parent_from_member.hpp +5 -4
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/list.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sg_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/slist.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splay_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_set.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/inf_nan.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/adl_move_swap.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/core.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils.hpp +1 -20
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/meta_utils_core.hpp +15 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/nsec_clock.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/placement_new.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_begin.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/std_ns_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/detail/mp_count.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/none_t.hpp +10 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/experimental_traits.hpp +4 -49
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_aligned_storage.hpp +2 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_config.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_reference_spec.hpp +47 -46
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_relops.hpp +11 -11
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_swap.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_trivially_copyable_base.hpp +12 -252
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/optional_utility.hpp +41 -0
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional.hpp +101 -592
- data/src/cxx_supportlib/vendor-modified/boost/optional/optional_io.hpp +1 -5
- data/src/cxx_supportlib/vendor-modified/boost/pointer_cast.hpp +12 -24
- data/src/cxx_supportlib/vendor-modified/boost/random/beta_distribution.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/random/hyperexponential_distribution.hpp +15 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/allocate_shared_array.hpp +37 -44
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/bad_weak_ptr.hpp +1 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/atomic_count.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/deprecated_macros.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_counted_base.hpp +14 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/local_sp_deleter.hpp +7 -15
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/shared_count.hpp +39 -90
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_convertible.hpp +0 -16
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_nt.hpp +13 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp +16 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_counted_impl.hpp +16 -55
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_noexcept.hpp +5 -14
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_type_traits.hpp +55 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_std_atomic.hpp +5 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/enable_shared_from_this.hpp +7 -10
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +32 -110
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ref_counter.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared.hpp +2 -6
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_array.hpp +10 -9
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_shared_object.hpp +28 -565
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/make_unique.hpp +11 -17
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_array.hpp +17 -21
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/scoped_ptr.hpp +20 -22
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_array.hpp +34 -68
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/shared_ptr.hpp +78 -356
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/weak_ptr.hpp +31 -89
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_map.hpp +195 -12
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_flat_set.hpp +206 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map.hpp +1202 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_map_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set.hpp +1065 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/concurrent_node_set_fwd.hpp +67 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/concurrent_static_asserts.hpp +30 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/concurrent_table.hpp +248 -47
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/core.hpp +24 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_map_types.hpp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/flat_set_types.hpp +8 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_handle.hpp +120 -5
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_handle.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_map_types.hpp +15 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_handle.hpp +48 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/node_set_types.hpp +13 -4
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/tuple_rotate_right.hpp +11 -10
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa/types_constructibility.hpp +172 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/map.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/set.hpp +0 -17
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +11 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_map.hpp +32 -44
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_node_set.hpp +31 -35
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_printers.hpp +414 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/nginx_module/ConfigGeneral/AutoGeneratedDefinitions.c +8 -32
- data/src/nginx_module/ConfigGeneral/AutoGeneratedManifestDefaultsInitialization.c +6 -0
- data/src/nginx_module/ConfigGeneral/AutoGeneratedSetterFuncs.c +12 -48
- data/src/nginx_module/LocationConfig/AutoGeneratedCreateFunction.c +5 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedHeaderSerialization.c +21 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedManifestGeneration.c +13 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedMergeFunction.c +3 -0
- data/src/nginx_module/LocationConfig/AutoGeneratedStruct.h +4 -0
- data/src/nginx_module/MainConfig/AutoGeneratedCreateFunction.c +0 -24
- data/src/nginx_module/MainConfig/AutoGeneratedManifestGeneration.c +0 -48
- data/src/nginx_module/MainConfig/AutoGeneratedStruct.h +0 -16
- data/src/nginx_module/ngx_http_passenger_module.c +0 -4
- data/src/ruby_native_extension/passenger_native_support.c +19 -3
- data/src/ruby_supportlib/phusion_passenger/apache2/config_options.rb +8 -24
- data/src/ruby_supportlib/phusion_passenger/common_library.rb +0 -3
- data/src/ruby_supportlib/phusion_passenger/constants.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/nginx/config_options.rb +6 -28
- data/src/ruby_supportlib/phusion_passenger/platform_info/compiler.rb +9 -8
- data/src/ruby_supportlib/phusion_passenger/platform_info/cxx_portability.rb +2 -27
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +0 -30
- data/src/ruby_supportlib/phusion_passenger/standalone/config_options_list.rb +8 -20
- data/src/ruby_supportlib/phusion_passenger.rb +7 -7
- data/src/schema_printer/SchemaPrinterMain.cpp +0 -4
- metadata +19 -670
- data/dev/websocketpp.patch +0 -39
- data/src/agent/Core/AdminPanelConnector.h +0 -680
- data/src/cxx_supportlib/DataStructures/HashMap.h +0 -60
- data/src/cxx_supportlib/FileTools/LargeFiles.cpp +0 -41
- data/src/cxx_supportlib/FileTools/LargeFiles.h +0 -43
- data/src/cxx_supportlib/WebSocketCommandReverseServer.h +0 -975
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +0 -338
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +0 -824
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/boost/asio/append.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/as_tuple.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +0 -223
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_immediate_executor.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/associator.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/async_result.hpp +0 -950
- data/src/cxx_supportlib/vendor-modified/boost/asio/awaitable.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +0 -1364
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +0 -712
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_io_object.hpp +0 -288
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +0 -691
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +0 -1358
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +0 -628
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +0 -825
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +0 -989
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +0 -650
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +0 -1938
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +0 -2710
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_iostream.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_streambuf.hpp +0 -644
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +0 -746
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +0 -1165
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf.hpp +0 -452
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_streambuf_fwd.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +0 -826
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +0 -624
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +0 -598
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +0 -615
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +0 -666
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_immediate_executor.hpp +0 -618
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer.hpp +0 -2755
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffer_registration.hpp +0 -320
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream.hpp +0 -275
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_read_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream.hpp +0 -267
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffered_write_stream_fwd.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/buffers_iterator.hpp +0 -523
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_after.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancel_at.hpp +0 -296
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_signal.hpp +0 -247
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_state.hpp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/cancellation_type.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_composed.hpp +0 -1323
- data/src/cxx_supportlib/vendor-modified/boost/asio/co_spawn.hpp +0 -525
- data/src/cxx_supportlib/vendor-modified/boost/asio/completion_condition.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/composed.hpp +0 -415
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect.hpp +0 -1348
- data/src/cxx_supportlib/vendor-modified/boost/asio/connect_pipe.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/boost/asio/coroutine.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/deadline_timer.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/default_completion_token.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/deferred.hpp +0 -721
- data/src/cxx_supportlib/vendor-modified/boost/asio/detached.hpp +0 -107
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/array_fwd.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/assert.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/atomic_count.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_cancellation_state.hpp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/base_from_completion_cond.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +0 -713
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/blocking_executor_op.hpp +0 -109
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_resize_guard.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffer_sequence_adapter.hpp +0 -839
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/buffered_stream_storage.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/call_stack.hpp +0 -127
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/chrono_time_traits.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_handler.hpp +0 -90
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_message.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/completion_payload_handler.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +0 -254
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/concurrency_hint.hpp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_event.hpp +0 -122
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/conditionally_enabled_mutex.hpp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +0 -1413
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/consuming_buffers.hpp +0 -445
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstddef.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/cstdint.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/date_time_fwd.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/deadline_timer_service.hpp +0 -341
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dependent_type.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_ops.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_read_op.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/descriptor_write_op.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/dev_poll_reactor.hpp +0 -249
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/epoll_reactor.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/event.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/eventfd_select_interrupter.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/exception.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_function.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/executor_op.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fd_set_adapter.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/fenced_block.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/functional.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/future.hpp +0 -32
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/global.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_cont_helpers.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_tracking.hpp +0 -268
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_type_requirements.hpp +0 -555
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +0 -513
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/hash_map.hpp +0 -333
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/buffer_sequence_adapter.ipp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +0 -996
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/dev_poll_reactor.ipp +0 -471
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/epoll_reactor.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/eventfd_select_interrupter.ipp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +0 -400
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_descriptor_service.ipp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_file_service.ipp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_service.ipp +0 -916
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/io_uring_socket_service_base.ipp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/kqueue_reactor.ipp +0 -610
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/null_event.ipp +0 -76
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/pipe_select_interrupter.ipp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_event.ipp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_mutex.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_serial_port_service.ipp +0 -170
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_thread.ipp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/posix_tss_ptr.ipp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_descriptor_service.ipp +0 -234
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/reactive_socket_service_base.ipp +0 -314
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/resolver_service_base.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/scheduler.ipp +0 -677
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +0 -402
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/service_registry.ipp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/signal_set_service.ipp +0 -828
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +0 -4046
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_select_interrupter.ipp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +0 -348
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.ipp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_service.ipp +0 -204
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/thread_context.ipp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/throw_error.ipp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_ptime.ipp +0 -99
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/timer_queue_set.ipp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_defer.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_dispatch.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiate_post.hpp +0 -209
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/initiation_base.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_control.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_object_impl.hpp +0 -179
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_at_op.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_read_op.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_service.hpp +0 -689
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_at_op.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_descriptor_write_op.hpp +0 -187
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_file_service.hpp +0 -263
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_null_buffers_op.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_operation.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_service.hpp +0 -321
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_accept_op.hpp +0 -282
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_connect_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recv_op.hpp +0 -207
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvfrom_op.hpp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_recvmsg_op.hpp +0 -194
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_send_op.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service.hpp +0 -631
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_socket_service_base.hpp +0 -665
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/io_uring_wait_op.hpp +0 -114
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_buffer_sequence.hpp +0 -298
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/is_executor.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/keyword_tss_ptr.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/kqueue_reactor.hpp +0 -273
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/limits.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/local_free_on_block_exit.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/mutex.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/non_const_lvalue.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/noncopyable.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_event.hpp +0 -108
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_fenced_block.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_global.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_reactor.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_signal_blocker.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_socket_service.hpp +0 -521
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_static_mutex.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_thread.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/null_tss_ptr.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/object_pool.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/op_queue.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/operation.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pipe_select_interrupter.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/pop_options.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_event.hpp +0 -177
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_fd_set_adapter.hpp +0 -120
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_global.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_serial_port_service.hpp +0 -251
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_signal_blocker.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_static_mutex.hpp +0 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_thread.hpp +0 -111
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/posix_tss_ptr.hpp +0 -81
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/push_options.hpp +0 -228
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_descriptor_service.hpp +0 -572
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_null_buffers_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_accept_op.hpp +0 -325
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_connect_op.hpp +0 -164
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recv_op.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvfrom_op.hpp +0 -205
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_recvmsg_op.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_send_op.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_sendto_op.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service.hpp +0 -635
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_socket_service_base.hpp +0 -757
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactive_wait_op.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/reactor_op_queue.hpp +0 -214
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/recycling_allocator.hpp +0 -116
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/regex_fwd.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_endpoint_op.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_op.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolve_query_op.hpp +0 -152
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/resolver_service_base.hpp +0 -160
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler.hpp +0 -243
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_operation.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_task.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scheduler_thread_info.hpp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_lock.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/scoped_ptr.hpp +0 -89
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_interrupter.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/select_reactor.hpp +0 -293
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/service_registry.hpp +0 -165
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_blocker.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_init.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_op.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/signal_set_service.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_holder.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_ops.hpp +0 -377
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_option.hpp +0 -318
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_select_interrupter.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/socket_types.hpp +0 -429
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/source_location.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/static_mutex.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_event.hpp +0 -185
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_fenced_block.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_global.hpp +0 -67
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_mutex.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_static_mutex.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/std_thread.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_executor_service.hpp +0 -175
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/strand_service.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/string_view.hpp +0 -49
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_context.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_group.hpp +0 -101
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/thread_info_base.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_error.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/throw_exception.hpp +0 -57
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timed_cancel_op.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue.hpp +0 -391
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_base.hpp +0 -70
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_ptime.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_queue_set.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/timer_scheduler_fwd.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/tss_ptr.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/type_traits.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +0 -85
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_handler.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wait_op.hpp +0 -51
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/winsock_init.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +0 -145
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/wrapped_handler.hpp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/error.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +0 -280
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +0 -1935
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bad_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +0 -1362
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +0 -1082
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +0 -192
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/impl/bad_executor.ipp +0 -42
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/invocable_archetype.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +0 -1004
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +0 -186
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +0 -755
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/prefer_only.hpp +0 -330
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +0 -753
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution_context.hpp +0 -390
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor.hpp +0 -365
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +0 -364
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/append.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_single.hpp +0 -134
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/as_tuple.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/awaitable_operators.hpp +0 -538
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +0 -516
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/cancellation_condition.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_error.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_spawn.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/concurrent_channel.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +0 -295
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro_traits.hpp +0 -230
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/deferred.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +0 -363
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_receive_op.hpp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_functions.hpp +0 -202
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_send_op.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +0 -681
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +0 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/has_signature.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/impl/channel_service.hpp +0 -625
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +0 -183
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/channel_error.ipp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +0 -1224
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +0 -790
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +0 -257
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +0 -216
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +0 -457
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/prepend.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +0 -226
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/file_base.hpp +0 -168
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/basic_endpoint.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/datagram_protocol.hpp +0 -125
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/endpoint.hpp +0 -135
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/detail/impl/endpoint.ipp +0 -112
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/raw_protocol.hpp +0 -123
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/seq_packet_protocol.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/boost/asio/generic/stream_protocol.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/handler_continuation_hook.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/high_resolution_timer.hpp +0 -41
- data/src/cxx_supportlib/vendor-modified/boost/asio/immediate.hpp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +0 -128
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +0 -136
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +0 -278
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/awaitable.hpp +0 -1198
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +0 -406
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +0 -386
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_after.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancel_at.hpp +0 -270
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/cancellation_signal.ipp +0 -98
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +0 -459
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +0 -705
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.hpp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect_pipe.ipp +0 -151
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +0 -149
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/detached.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/error.ipp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.hpp +0 -79
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/execution_context.ipp +0 -84
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.hpp +0 -319
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/executor.ipp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.hpp +0 -435
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/io_context.ipp +0 -178
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/multiple_exceptions.ipp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +0 -172
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +0 -904
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +0 -564
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +0 -2670
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +0 -289
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/serial_port_base.ipp +0 -556
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +0 -1402
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +0 -93
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.hpp +0 -36
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_context.ipp +0 -94
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/system_executor.hpp +0 -181
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.hpp +0 -279
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/thread_pool.ipp +0 -144
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_awaitable.hpp +0 -303
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +0 -782
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +0 -482
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -1507
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context_strand.hpp +0 -398
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_service_strand.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address.hpp +0 -283
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4.hpp +0 -423
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_iterator.hpp +0 -158
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v4_range.hpp +0 -130
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6.hpp +0 -409
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_iterator.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/address_v6_range.hpp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/bad_address_cast.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_endpoint.hpp +0 -284
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver.hpp +0 -1114
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_entry.hpp +0 -115
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_iterator.hpp +0 -190
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_query.hpp +0 -262
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/basic_resolver_results.hpp +0 -309
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/endpoint.hpp +0 -143
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/impl/endpoint.ipp +0 -197
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/detail/socket_option.hpp +0 -568
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/host_name.hpp +0 -44
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/icmp.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address.ipp +0 -237
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v4.ipp +0 -208
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/address_v6.ipp +0 -344
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/basic_endpoint.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/host_name.ipp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +0 -220
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.hpp +0 -55
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +0 -189
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/multicast.hpp +0 -193
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v4.hpp +0 -259
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/network_v6.hpp +0 -233
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_base.hpp +0 -131
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/resolver_query_base.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/tcp.hpp +0 -157
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/udp.hpp +0 -113
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/unicast.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/v6_only.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_applicable_property.hpp +0 -63
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_contiguous_iterator.hpp +0 -47
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_executor.hpp +0 -48
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_read_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/is_write_buffered.hpp +0 -61
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/basic_endpoint.hpp +0 -245
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/connect_pair.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/datagram_protocol.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/endpoint.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/detail/impl/endpoint.ipp +0 -133
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/seq_packet_protocol.hpp +0 -86
- data/src/cxx_supportlib/vendor-modified/boost/asio/local/stream_protocol.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/multiple_exceptions.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/packaged_task.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/placeholders.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +0 -775
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/descriptor_base.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/stream_descriptor.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +0 -215
- data/src/cxx_supportlib/vendor-modified/boost/asio/prefer.hpp +0 -581
- data/src/cxx_supportlib/vendor-modified/boost/asio/prepend.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/query.hpp +0 -315
- data/src/cxx_supportlib/vendor-modified/boost/asio/random_access_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/read.hpp +0 -1549
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_at.hpp +0 -830
- data/src/cxx_supportlib/vendor-modified/boost/asio/read_until.hpp +0 -3204
- data/src/cxx_supportlib/vendor-modified/boost/asio/readable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/recycling_allocator.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/boost/asio/redirect_error.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/registered_buffer.hpp +0 -346
- data/src/cxx_supportlib/vendor-modified/boost/asio/require.hpp +0 -437
- data/src/cxx_supportlib/vendor-modified/boost/asio/require_concept.hpp +0 -347
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/boost/asio/serial_port_base.hpp +0 -169
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set.hpp +0 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/signal_set_base.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/boost/asio/socket_base.hpp +0 -561
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +0 -873
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context.hpp +0 -764
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/context_base.hpp +0 -211
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/buffered_handshake_op.hpp +0 -121
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/engine.hpp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/handshake_op.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/engine.ipp +0 -379
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/impl/openssl_init.ipp +0 -171
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +0 -378
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_init.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/openssl_types.hpp +0 -34
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/password_callback.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/read_op.hpp +0 -74
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/shutdown_op.hpp +0 -71
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/stream_core.hpp +0 -219
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/verify_callback.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/write_op.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/error.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/host_name_verification.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/context.ipp +0 -1324
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/error.ipp +0 -126
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/host_name_verification.ipp +0 -75
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/rfc2818_verification.ipp +0 -166
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/impl/src.hpp +0 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/rfc2818_verification.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream.hpp +0 -1044
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/stream_base.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_context.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/verify_mode.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl.hpp +0 -28
- data/src/cxx_supportlib/vendor-modified/boost/asio/static_thread_pool.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/boost/asio/steady_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +0 -559
- data/src/cxx_supportlib/vendor-modified/boost/asio/stream_file.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/streambuf.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_context.hpp +0 -92
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -673
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_timer.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/boost/asio/this_coro.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +0 -965
- data/src/cxx_supportlib/vendor-modified/boost/asio/time_traits.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/equality_comparable.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/execute_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/prefer_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/query_static_constexpr_member.hpp +0 -103
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_concept_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_free.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/require_member.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_query.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require.hpp +0 -117
- data/src/cxx_supportlib/vendor-modified/boost/asio/traits/static_require_concept.hpp +0 -118
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/buffer.hpp +0 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/executor.hpp +0 -35
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/internet.hpp +0 -40
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/io_context.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/net.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/netfwd.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/socket.hpp +0 -27
- data/src/cxx_supportlib/vendor-modified/boost/asio/ts/timer.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/unyield.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_awaitable.hpp +0 -163
- data/src/cxx_supportlib/vendor-modified/boost/asio/use_future.hpp +0 -161
- data/src/cxx_supportlib/vendor-modified/boost/asio/uses_executor.hpp +0 -69
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio/wait_traits.hpp +0 -58
- data/src/cxx_supportlib/vendor-modified/boost/asio/writable_pipe.hpp +0 -37
- data/src/cxx_supportlib/vendor-modified/boost/asio/write.hpp +0 -1528
- data/src/cxx_supportlib/vendor-modified/boost/asio/write_at.hpp +0 -843
- data/src/cxx_supportlib/vendor-modified/boost/asio/yield.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/boost/optional/detail/old_optional_implementation.hpp +0 -1059
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp +0 -64
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/requires_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_forward.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/sp_nullptr_t.hpp +0 -45
- data/src/cxx_supportlib/vendor-modified/websocketpp/COPYING +0 -145
- data/src/cxx_supportlib/vendor-modified/websocketpp/changelog.md +0 -444
- data/src/cxx_supportlib/vendor-modified/websocketpp/readme.md +0 -49
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/base64/base64.hpp +0 -178
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/client.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/close.hpp +0 -353
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio.hpp +0 -141
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/asio_ssl.hpp +0 -39
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/chrono.hpp +0 -68
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/connection_hdl.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/cpp11.hpp +0 -162
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/functional.hpp +0 -100
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +0 -448
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/memory.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/network.hpp +0 -106
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/platforms.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/random.hpp +0 -82
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/regex.hpp +0 -59
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/stdint.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/system_error.hpp +0 -84
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/thread.hpp +0 -88
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/time.hpp +0 -56
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/type_traits.hpp +0 -65
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/basic.hpp +0 -46
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/concurrency/none.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_client.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/asio_no_tls_client.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/boost_config.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core.hpp +0 -297
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/core_client.hpp +0 -294
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/debug_asio_no_tls.hpp +0 -73
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_client.hpp +0 -72
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/config/minimal_server.hpp +0 -312
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection.hpp +0 -1642
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/connection_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint.hpp +0 -700
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/endpoint_base.hpp +0 -38
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/error.hpp +0 -277
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/extension.hpp +0 -102
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp +0 -129
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp +0 -817
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/frame.hpp +0 -853
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/constants.hpp +0 -308
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/parser.hpp +0 -200
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/request.hpp +0 -191
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/impl/response.hpp +0 -266
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/parser.hpp +0 -629
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/request.hpp +0 -124
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/http/response.hpp +0 -188
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/connection_impl.hpp +0 -2375
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/endpoint_impl.hpp +0 -269
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/impl/utilities_impl.hpp +0 -87
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/basic.hpp +0 -199
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/levels.hpp +0 -203
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/stub.hpp +0 -119
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/logger/syslog.hpp +0 -146
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/alloc.hpp +0 -105
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/message.hpp +0 -340
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/message_buffer/pool.hpp +0 -229
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/base.hpp +0 -299
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi00.hpp +0 -462
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi07.hpp +0 -78
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi08.hpp +0 -83
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/hybi13.hpp +0 -1072
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/processors/processor.hpp +0 -407
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/none.hpp +0 -60
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/random/random_device.hpp +0 -80
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/client_endpoint.hpp +0 -173
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/roles/server_endpoint.hpp +0 -195
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/server.hpp +0 -33
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/sha1/sha1.hpp +0 -189
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/base.hpp +0 -232
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp +0 -1197
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/endpoint.hpp +0 -1182
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/base.hpp +0 -159
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/none.hpp +0 -372
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/security/tls.hpp +0 -474
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/connection.hpp +0 -238
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/base/endpoint.hpp +0 -77
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/base.hpp +0 -104
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/connection.hpp +0 -412
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/debug/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/base.hpp +0 -133
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/connection.hpp +0 -714
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/iostream/endpoint.hpp +0 -222
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/base.hpp +0 -95
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/connection.hpp +0 -286
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/stub/endpoint.hpp +0 -140
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/uri.hpp +0 -356
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utf8_validator.hpp +0 -154
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/utilities.hpp +0 -180
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/version.hpp +0 -61
data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/transport/asio/connection.hpp
DELETED
@@ -1,1197 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright (c) 2015, Peter Thorson. All rights reserved.
|
3
|
-
*
|
4
|
-
* Redistribution and use in source and binary forms, with or without
|
5
|
-
* modification, are permitted provided that the following conditions are met:
|
6
|
-
* * Redistributions of source code must retain the above copyright
|
7
|
-
* notice, this list of conditions and the following disclaimer.
|
8
|
-
* * Redistributions in binary form must reproduce the above copyright
|
9
|
-
* notice, this list of conditions and the following disclaimer in the
|
10
|
-
* documentation and/or other materials provided with the distribution.
|
11
|
-
* * Neither the name of the WebSocket++ Project nor the
|
12
|
-
* names of its contributors may be used to endorse or promote products
|
13
|
-
* derived from this software without specific prior written permission.
|
14
|
-
*
|
15
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
-
* ARE DISCLAIMED. IN NO EVENT SHALL PETER THORSON BE LIABLE FOR ANY
|
19
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21
|
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25
|
-
*
|
26
|
-
*/
|
27
|
-
|
28
|
-
#ifndef WEBSOCKETPP_TRANSPORT_ASIO_CON_HPP
|
29
|
-
#define WEBSOCKETPP_TRANSPORT_ASIO_CON_HPP
|
30
|
-
|
31
|
-
#include <websocketpp/transport/asio/base.hpp>
|
32
|
-
|
33
|
-
#include <websocketpp/transport/base/connection.hpp>
|
34
|
-
|
35
|
-
#include <websocketpp/logger/levels.hpp>
|
36
|
-
#include <websocketpp/http/constants.hpp>
|
37
|
-
|
38
|
-
#include <websocketpp/base64/base64.hpp>
|
39
|
-
#include <websocketpp/error.hpp>
|
40
|
-
#include <websocketpp/uri.hpp>
|
41
|
-
|
42
|
-
#include <websocketpp/common/asio.hpp>
|
43
|
-
#include <websocketpp/common/chrono.hpp>
|
44
|
-
#include <websocketpp/common/cpp11.hpp>
|
45
|
-
#include <websocketpp/common/memory.hpp>
|
46
|
-
#include <websocketpp/common/functional.hpp>
|
47
|
-
#include <websocketpp/common/connection_hdl.hpp>
|
48
|
-
|
49
|
-
#include <istream>
|
50
|
-
#include <sstream>
|
51
|
-
#include <string>
|
52
|
-
#include <vector>
|
53
|
-
|
54
|
-
namespace websocketpp {
|
55
|
-
namespace transport {
|
56
|
-
namespace asio {
|
57
|
-
|
58
|
-
typedef lib::function<void(connection_hdl)> tcp_init_handler;
|
59
|
-
|
60
|
-
/// Asio based connection transport component
|
61
|
-
/**
|
62
|
-
* transport::asio::connection implements a connection transport component using
|
63
|
-
* Asio that works with the transport::asio::endpoint endpoint transport
|
64
|
-
* component.
|
65
|
-
*/
|
66
|
-
template <typename config>
|
67
|
-
class connection : public config::socket_type::socket_con_type {
|
68
|
-
public:
|
69
|
-
/// Type of this connection transport component
|
70
|
-
typedef connection<config> type;
|
71
|
-
/// Type of a shared pointer to this connection transport component
|
72
|
-
typedef lib::shared_ptr<type> ptr;
|
73
|
-
|
74
|
-
/// Type of the socket connection component
|
75
|
-
typedef typename config::socket_type::socket_con_type socket_con_type;
|
76
|
-
/// Type of a shared pointer to the socket connection component
|
77
|
-
typedef typename socket_con_type::ptr socket_con_ptr;
|
78
|
-
/// Type of this transport's access logging policy
|
79
|
-
typedef typename config::alog_type alog_type;
|
80
|
-
/// Type of this transport's error logging policy
|
81
|
-
typedef typename config::elog_type elog_type;
|
82
|
-
|
83
|
-
typedef typename config::request_type request_type;
|
84
|
-
typedef typename request_type::ptr request_ptr;
|
85
|
-
typedef typename config::response_type response_type;
|
86
|
-
typedef typename response_type::ptr response_ptr;
|
87
|
-
|
88
|
-
/// Type of a pointer to the Asio io_service being used
|
89
|
-
typedef lib::asio::io_service * io_service_ptr;
|
90
|
-
/// Type of a pointer to the Asio io_service::strand being used
|
91
|
-
typedef lib::shared_ptr<lib::asio::io_service::strand> strand_ptr;
|
92
|
-
/// Type of a pointer to the Asio timer class
|
93
|
-
typedef lib::shared_ptr<lib::asio::steady_timer> timer_ptr;
|
94
|
-
|
95
|
-
// connection is friends with its associated endpoint to allow the endpoint
|
96
|
-
// to call private/protected utility methods that we don't want to expose
|
97
|
-
// to the public api.
|
98
|
-
friend class endpoint<config>;
|
99
|
-
|
100
|
-
// generate and manage our own io_service
|
101
|
-
explicit connection(bool is_server, const lib::shared_ptr<alog_type> & alog, const lib::shared_ptr<elog_type> & elog)
|
102
|
-
: m_is_server(is_server)
|
103
|
-
, m_alog(alog)
|
104
|
-
, m_elog(elog)
|
105
|
-
{
|
106
|
-
m_alog->write(log::alevel::devel,"asio con transport constructor");
|
107
|
-
}
|
108
|
-
|
109
|
-
/// Get a shared pointer to this component
|
110
|
-
ptr get_shared() {
|
111
|
-
return lib::static_pointer_cast<type>(socket_con_type::get_shared());
|
112
|
-
}
|
113
|
-
|
114
|
-
bool is_secure() const {
|
115
|
-
return socket_con_type::is_secure();
|
116
|
-
}
|
117
|
-
|
118
|
-
/// Set uri hook
|
119
|
-
/**
|
120
|
-
* Called by the endpoint as a connection is being established to provide
|
121
|
-
* the uri being connected to to the transport layer.
|
122
|
-
*
|
123
|
-
* This transport policy doesn't use the uri except to forward it to the
|
124
|
-
* socket layer.
|
125
|
-
*
|
126
|
-
* @since 0.6.0
|
127
|
-
*
|
128
|
-
* @param u The uri to set
|
129
|
-
*/
|
130
|
-
void set_uri(uri_ptr u) {
|
131
|
-
socket_con_type::set_uri(u);
|
132
|
-
}
|
133
|
-
|
134
|
-
/// Sets the tcp pre init handler
|
135
|
-
/**
|
136
|
-
* The tcp pre init handler is called after the raw tcp connection has been
|
137
|
-
* established but before any additional wrappers (proxy connects, TLS
|
138
|
-
* handshakes, etc) have been performed.
|
139
|
-
*
|
140
|
-
* @since 0.3.0
|
141
|
-
*
|
142
|
-
* @param h The handler to call on tcp pre init.
|
143
|
-
*/
|
144
|
-
void set_tcp_pre_init_handler(tcp_init_handler h) {
|
145
|
-
m_tcp_pre_init_handler = h;
|
146
|
-
}
|
147
|
-
|
148
|
-
/// Sets the tcp pre init handler (deprecated)
|
149
|
-
/**
|
150
|
-
* The tcp pre init handler is called after the raw tcp connection has been
|
151
|
-
* established but before any additional wrappers (proxy connects, TLS
|
152
|
-
* handshakes, etc) have been performed.
|
153
|
-
*
|
154
|
-
* @deprecated Use set_tcp_pre_init_handler instead
|
155
|
-
*
|
156
|
-
* @param h The handler to call on tcp pre init.
|
157
|
-
*/
|
158
|
-
void set_tcp_init_handler(tcp_init_handler h) {
|
159
|
-
set_tcp_pre_init_handler(h);
|
160
|
-
}
|
161
|
-
|
162
|
-
/// Sets the tcp post init handler
|
163
|
-
/**
|
164
|
-
* The tcp post init handler is called after the tcp connection has been
|
165
|
-
* established and all additional wrappers (proxy connects, TLS handshakes,
|
166
|
-
* etc have been performed. This is fired before any bytes are read or any
|
167
|
-
* WebSocket specific handshake logic has been performed.
|
168
|
-
*
|
169
|
-
* @since 0.3.0
|
170
|
-
*
|
171
|
-
* @param h The handler to call on tcp post init.
|
172
|
-
*/
|
173
|
-
void set_tcp_post_init_handler(tcp_init_handler h) {
|
174
|
-
m_tcp_post_init_handler = h;
|
175
|
-
}
|
176
|
-
|
177
|
-
/// Set the proxy to connect through (exception free)
|
178
|
-
/**
|
179
|
-
* The URI passed should be a complete URI including scheme. For example:
|
180
|
-
* http://proxy.example.com:8080/
|
181
|
-
*
|
182
|
-
* The proxy must be set up as an explicit (CONNECT) proxy allowed to
|
183
|
-
* connect to the port you specify. Traffic to the proxy is not encrypted.
|
184
|
-
*
|
185
|
-
* @param uri The full URI of the proxy to connect to.
|
186
|
-
*
|
187
|
-
* @param ec A status value
|
188
|
-
*/
|
189
|
-
void set_proxy(std::string const & uri, lib::error_code & ec) {
|
190
|
-
// TODO: return errors for illegal URIs here?
|
191
|
-
// TODO: should https urls be illegal for the moment?
|
192
|
-
m_proxy = uri;
|
193
|
-
m_proxy_data = lib::make_shared<proxy_data>();
|
194
|
-
ec = lib::error_code();
|
195
|
-
}
|
196
|
-
|
197
|
-
/// Set the proxy to connect through (exception)
|
198
|
-
void set_proxy(std::string const & uri) {
|
199
|
-
lib::error_code ec;
|
200
|
-
set_proxy(uri,ec);
|
201
|
-
if (ec) { throw exception(ec); }
|
202
|
-
}
|
203
|
-
|
204
|
-
/// Set the basic auth credentials to use (exception free)
|
205
|
-
/**
|
206
|
-
* The URI passed should be a complete URI including scheme. For example:
|
207
|
-
* http://proxy.example.com:8080/
|
208
|
-
*
|
209
|
-
* The proxy must be set up as an explicit proxy
|
210
|
-
*
|
211
|
-
* @param username The username to send
|
212
|
-
*
|
213
|
-
* @param password The password to send
|
214
|
-
*
|
215
|
-
* @param ec A status value
|
216
|
-
*/
|
217
|
-
void set_proxy_basic_auth(std::string const & username, std::string const &
|
218
|
-
password, lib::error_code & ec)
|
219
|
-
{
|
220
|
-
if (!m_proxy_data) {
|
221
|
-
ec = make_error_code(websocketpp::error::invalid_state);
|
222
|
-
return;
|
223
|
-
}
|
224
|
-
|
225
|
-
// TODO: username can't contain ':'
|
226
|
-
std::string val = "Basic "+base64_encode(username + ":" + password);
|
227
|
-
m_proxy_data->req.replace_header("Proxy-Authorization",val);
|
228
|
-
ec = lib::error_code();
|
229
|
-
}
|
230
|
-
|
231
|
-
/// Set the basic auth credentials to use (exception)
|
232
|
-
void set_proxy_basic_auth(std::string const & username, std::string const &
|
233
|
-
password)
|
234
|
-
{
|
235
|
-
lib::error_code ec;
|
236
|
-
set_proxy_basic_auth(username,password,ec);
|
237
|
-
if (ec) { throw exception(ec); }
|
238
|
-
}
|
239
|
-
|
240
|
-
/// Set the proxy timeout duration (exception free)
|
241
|
-
/**
|
242
|
-
* Duration is in milliseconds. Default value is based on the transport
|
243
|
-
* config
|
244
|
-
*
|
245
|
-
* @param duration The number of milliseconds to wait before aborting the
|
246
|
-
* proxy connection.
|
247
|
-
*
|
248
|
-
* @param ec A status value
|
249
|
-
*/
|
250
|
-
void set_proxy_timeout(long duration, lib::error_code & ec) {
|
251
|
-
if (!m_proxy_data) {
|
252
|
-
ec = make_error_code(websocketpp::error::invalid_state);
|
253
|
-
return;
|
254
|
-
}
|
255
|
-
|
256
|
-
m_proxy_data->timeout_proxy = duration;
|
257
|
-
ec = lib::error_code();
|
258
|
-
}
|
259
|
-
|
260
|
-
/// Set the proxy timeout duration (exception)
|
261
|
-
void set_proxy_timeout(long duration) {
|
262
|
-
lib::error_code ec;
|
263
|
-
set_proxy_timeout(duration,ec);
|
264
|
-
if (ec) { throw exception(ec); }
|
265
|
-
}
|
266
|
-
|
267
|
-
std::string const & get_proxy() const {
|
268
|
-
return m_proxy;
|
269
|
-
}
|
270
|
-
|
271
|
-
/// Get the remote endpoint address
|
272
|
-
/**
|
273
|
-
* The iostream transport has no information about the ultimate remote
|
274
|
-
* endpoint. It will return the string "iostream transport". To indicate
|
275
|
-
* this.
|
276
|
-
*
|
277
|
-
* TODO: allow user settable remote endpoint addresses if this seems useful
|
278
|
-
*
|
279
|
-
* @return A string identifying the address of the remote endpoint
|
280
|
-
*/
|
281
|
-
std::string get_remote_endpoint() const {
|
282
|
-
lib::error_code ec;
|
283
|
-
|
284
|
-
std::string ret = socket_con_type::get_remote_endpoint(ec);
|
285
|
-
|
286
|
-
if (ec) {
|
287
|
-
m_elog->write(log::elevel::info,ret);
|
288
|
-
return "Unknown";
|
289
|
-
} else {
|
290
|
-
return ret;
|
291
|
-
}
|
292
|
-
}
|
293
|
-
|
294
|
-
/// Get the connection handle
|
295
|
-
connection_hdl get_handle() const {
|
296
|
-
return m_connection_hdl;
|
297
|
-
}
|
298
|
-
|
299
|
-
/// Call back a function after a period of time.
|
300
|
-
/**
|
301
|
-
* Sets a timer that calls back a function after the specified period of
|
302
|
-
* milliseconds. Returns a handle that can be used to cancel the timer.
|
303
|
-
* A cancelled timer will return the error code error::operation_aborted
|
304
|
-
* A timer that expired will return no error.
|
305
|
-
*
|
306
|
-
* @param duration Length of time to wait in milliseconds
|
307
|
-
*
|
308
|
-
* @param callback The function to call back when the timer has expired
|
309
|
-
*
|
310
|
-
* @return A handle that can be used to cancel the timer if it is no longer
|
311
|
-
* needed.
|
312
|
-
*/
|
313
|
-
timer_ptr set_timer(long duration, timer_handler callback) {
|
314
|
-
timer_ptr new_timer(
|
315
|
-
new lib::asio::steady_timer(
|
316
|
-
*m_io_service,
|
317
|
-
lib::asio::milliseconds(duration))
|
318
|
-
);
|
319
|
-
|
320
|
-
if (config::enable_multithreading) {
|
321
|
-
new_timer->async_wait(m_strand->wrap(lib::bind(
|
322
|
-
&type::handle_timer, get_shared(),
|
323
|
-
new_timer,
|
324
|
-
callback,
|
325
|
-
lib::placeholders::_1
|
326
|
-
)));
|
327
|
-
} else {
|
328
|
-
new_timer->async_wait(lib::bind(
|
329
|
-
&type::handle_timer, get_shared(),
|
330
|
-
new_timer,
|
331
|
-
callback,
|
332
|
-
lib::placeholders::_1
|
333
|
-
));
|
334
|
-
}
|
335
|
-
|
336
|
-
return new_timer;
|
337
|
-
}
|
338
|
-
|
339
|
-
/// Timer callback
|
340
|
-
/**
|
341
|
-
* The timer pointer is included to ensure the timer isn't destroyed until
|
342
|
-
* after it has expired.
|
343
|
-
*
|
344
|
-
* TODO: candidate for protected status
|
345
|
-
*
|
346
|
-
* @param post_timer Pointer to the timer in question
|
347
|
-
* @param callback The function to call back
|
348
|
-
* @param ec The status code
|
349
|
-
*/
|
350
|
-
void handle_timer(timer_ptr, timer_handler callback,
|
351
|
-
lib::asio::error_code const & ec)
|
352
|
-
{
|
353
|
-
if (ec) {
|
354
|
-
if (ec == lib::asio::error::operation_aborted) {
|
355
|
-
callback(make_error_code(transport::error::operation_aborted));
|
356
|
-
} else {
|
357
|
-
log_err(log::elevel::info,"asio handle_timer",ec);
|
358
|
-
callback(make_error_code(error::pass_through));
|
359
|
-
}
|
360
|
-
} else {
|
361
|
-
callback(lib::error_code());
|
362
|
-
}
|
363
|
-
}
|
364
|
-
|
365
|
-
/// Get a pointer to this connection's strand
|
366
|
-
strand_ptr get_strand() {
|
367
|
-
return m_strand;
|
368
|
-
}
|
369
|
-
|
370
|
-
/// Get the internal transport error code for a closed/failed connection
|
371
|
-
/**
|
372
|
-
* Retrieves a machine readable detailed error code indicating the reason
|
373
|
-
* that the connection was closed or failed. Valid only after the close or
|
374
|
-
* fail handler is called.
|
375
|
-
*
|
376
|
-
* Primarily used if you are using mismatched asio / system_error
|
377
|
-
* implementations such as `boost::asio` with `std::system_error`. In these
|
378
|
-
* cases the transport error type is different than the library error type
|
379
|
-
* and some WebSocket++ functions that return transport errors via the
|
380
|
-
* library error code type will be coerced into a catch all `pass_through`
|
381
|
-
* or `tls_error` error. This method will return the original machine
|
382
|
-
* readable transport error in the native type.
|
383
|
-
*
|
384
|
-
* @since 0.7.0
|
385
|
-
*
|
386
|
-
* @return Error code indicating the reason the connection was closed or
|
387
|
-
* failed
|
388
|
-
*/
|
389
|
-
lib::asio::error_code get_transport_ec() const {
|
390
|
-
return m_tec;
|
391
|
-
}
|
392
|
-
|
393
|
-
/// Initialize transport for reading
|
394
|
-
/**
|
395
|
-
* init_asio is called once immediately after construction to initialize
|
396
|
-
* Asio components to the io_service
|
397
|
-
*
|
398
|
-
* The transport initialization sequence consists of the following steps:
|
399
|
-
* - Pre-init: the underlying socket is initialized to the point where
|
400
|
-
* bytes may be written. No bytes are actually written in this stage
|
401
|
-
* - Proxy negotiation: if a proxy is set, a request is made to it to start
|
402
|
-
* a tunnel to the final destination. This stage ends when the proxy is
|
403
|
-
* ready to forward the
|
404
|
-
* next byte to the remote endpoint.
|
405
|
-
* - Post-init: Perform any i/o with the remote endpoint, such as setting up
|
406
|
-
* tunnels for encryption. This stage ends when the connection is ready to
|
407
|
-
* read or write the WebSocket handshakes. At this point the original
|
408
|
-
* callback function is called.
|
409
|
-
*/
|
410
|
-
protected:
|
411
|
-
void init(init_handler callback) {
|
412
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
413
|
-
m_alog->write(log::alevel::devel,"asio connection init");
|
414
|
-
}
|
415
|
-
|
416
|
-
// TODO: pre-init timeout. Right now no implemented socket policies
|
417
|
-
// actually have an asyncronous pre-init
|
418
|
-
|
419
|
-
socket_con_type::pre_init(
|
420
|
-
lib::bind(
|
421
|
-
&type::handle_pre_init,
|
422
|
-
get_shared(),
|
423
|
-
callback,
|
424
|
-
lib::placeholders::_1
|
425
|
-
)
|
426
|
-
);
|
427
|
-
}
|
428
|
-
|
429
|
-
/// initialize the proxy buffers and http parsers
|
430
|
-
/**
|
431
|
-
*
|
432
|
-
* @param authority The address of the server we want the proxy to tunnel to
|
433
|
-
* in the format of a URI authority (host:port)
|
434
|
-
*
|
435
|
-
* @return Status code indicating what errors occurred, if any
|
436
|
-
*/
|
437
|
-
lib::error_code proxy_init(std::string const & authority) {
|
438
|
-
if (!m_proxy_data) {
|
439
|
-
return websocketpp::error::make_error_code(
|
440
|
-
websocketpp::error::invalid_state);
|
441
|
-
}
|
442
|
-
m_proxy_data->req.set_version("HTTP/1.1");
|
443
|
-
m_proxy_data->req.set_method("CONNECT");
|
444
|
-
|
445
|
-
m_proxy_data->req.set_uri(authority);
|
446
|
-
m_proxy_data->req.replace_header("Host",authority);
|
447
|
-
|
448
|
-
return lib::error_code();
|
449
|
-
}
|
450
|
-
|
451
|
-
/// Finish constructing the transport
|
452
|
-
/**
|
453
|
-
* init_asio is called once immediately after construction to initialize
|
454
|
-
* Asio components to the io_service.
|
455
|
-
*
|
456
|
-
* @param io_service A pointer to the io_service to register with this
|
457
|
-
* connection
|
458
|
-
*
|
459
|
-
* @return Status code for the success or failure of the initialization
|
460
|
-
*/
|
461
|
-
lib::error_code init_asio (io_service_ptr io_service) {
|
462
|
-
m_io_service = io_service;
|
463
|
-
|
464
|
-
if (config::enable_multithreading) {
|
465
|
-
m_strand.reset(new lib::asio::io_service::strand(*io_service));
|
466
|
-
}
|
467
|
-
|
468
|
-
lib::error_code ec = socket_con_type::init_asio(io_service, m_strand,
|
469
|
-
m_is_server);
|
470
|
-
|
471
|
-
return ec;
|
472
|
-
}
|
473
|
-
|
474
|
-
void handle_pre_init(init_handler callback, lib::error_code const & ec) {
|
475
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
476
|
-
m_alog->write(log::alevel::devel,"asio connection handle pre_init");
|
477
|
-
}
|
478
|
-
|
479
|
-
if (m_tcp_pre_init_handler) {
|
480
|
-
m_tcp_pre_init_handler(m_connection_hdl);
|
481
|
-
}
|
482
|
-
|
483
|
-
if (ec) {
|
484
|
-
callback(ec);
|
485
|
-
}
|
486
|
-
|
487
|
-
// If we have a proxy set issue a proxy connect, otherwise skip to
|
488
|
-
// post_init
|
489
|
-
if (!m_proxy.empty()) {
|
490
|
-
proxy_write(callback);
|
491
|
-
} else {
|
492
|
-
post_init(callback);
|
493
|
-
}
|
494
|
-
}
|
495
|
-
|
496
|
-
void post_init(init_handler callback) {
|
497
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
498
|
-
m_alog->write(log::alevel::devel,"asio connection post_init");
|
499
|
-
}
|
500
|
-
|
501
|
-
timer_ptr post_timer;
|
502
|
-
|
503
|
-
if (config::timeout_socket_post_init > 0) {
|
504
|
-
post_timer = set_timer(
|
505
|
-
config::timeout_socket_post_init,
|
506
|
-
lib::bind(
|
507
|
-
&type::handle_post_init_timeout,
|
508
|
-
get_shared(),
|
509
|
-
post_timer,
|
510
|
-
callback,
|
511
|
-
lib::placeholders::_1
|
512
|
-
)
|
513
|
-
);
|
514
|
-
}
|
515
|
-
|
516
|
-
socket_con_type::post_init(
|
517
|
-
lib::bind(
|
518
|
-
&type::handle_post_init,
|
519
|
-
get_shared(),
|
520
|
-
post_timer,
|
521
|
-
callback,
|
522
|
-
lib::placeholders::_1
|
523
|
-
)
|
524
|
-
);
|
525
|
-
}
|
526
|
-
|
527
|
-
/// Post init timeout callback
|
528
|
-
/**
|
529
|
-
* The timer pointer is included to ensure the timer isn't destroyed until
|
530
|
-
* after it has expired.
|
531
|
-
*
|
532
|
-
* @param post_timer Pointer to the timer in question
|
533
|
-
* @param callback The function to call back
|
534
|
-
* @param ec The status code
|
535
|
-
*/
|
536
|
-
void handle_post_init_timeout(timer_ptr, init_handler callback,
|
537
|
-
lib::error_code const & ec)
|
538
|
-
{
|
539
|
-
lib::error_code ret_ec;
|
540
|
-
|
541
|
-
if (ec) {
|
542
|
-
if (ec == transport::error::operation_aborted) {
|
543
|
-
m_alog->write(log::alevel::devel,
|
544
|
-
"asio post init timer cancelled");
|
545
|
-
return;
|
546
|
-
}
|
547
|
-
|
548
|
-
log_err(log::elevel::devel,"asio handle_post_init_timeout",ec);
|
549
|
-
ret_ec = ec;
|
550
|
-
} else {
|
551
|
-
if (socket_con_type::get_ec()) {
|
552
|
-
ret_ec = socket_con_type::get_ec();
|
553
|
-
} else {
|
554
|
-
ret_ec = make_error_code(transport::error::timeout);
|
555
|
-
}
|
556
|
-
}
|
557
|
-
|
558
|
-
m_alog->write(log::alevel::devel, "Asio transport post-init timed out");
|
559
|
-
cancel_socket_checked();
|
560
|
-
callback(ret_ec);
|
561
|
-
}
|
562
|
-
|
563
|
-
/// Post init timeout callback
|
564
|
-
/**
|
565
|
-
* The timer pointer is included to ensure the timer isn't destroyed until
|
566
|
-
* after it has expired.
|
567
|
-
*
|
568
|
-
* @param post_timer Pointer to the timer in question
|
569
|
-
* @param callback The function to call back
|
570
|
-
* @param ec The status code
|
571
|
-
*/
|
572
|
-
void handle_post_init(timer_ptr post_timer, init_handler callback,
|
573
|
-
lib::error_code const & ec)
|
574
|
-
{
|
575
|
-
if (ec == transport::error::operation_aborted ||
|
576
|
-
(post_timer && lib::asio::is_neg(post_timer->expires_from_now())))
|
577
|
-
{
|
578
|
-
m_alog->write(log::alevel::devel,"post_init cancelled");
|
579
|
-
return;
|
580
|
-
}
|
581
|
-
|
582
|
-
if (post_timer) {
|
583
|
-
post_timer->cancel();
|
584
|
-
}
|
585
|
-
|
586
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
587
|
-
m_alog->write(log::alevel::devel,"asio connection handle_post_init");
|
588
|
-
}
|
589
|
-
|
590
|
-
if (m_tcp_post_init_handler) {
|
591
|
-
m_tcp_post_init_handler(m_connection_hdl);
|
592
|
-
}
|
593
|
-
|
594
|
-
callback(ec);
|
595
|
-
}
|
596
|
-
|
597
|
-
void proxy_write(init_handler callback) {
|
598
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
599
|
-
m_alog->write(log::alevel::devel,"asio connection proxy_write");
|
600
|
-
}
|
601
|
-
|
602
|
-
if (!m_proxy_data) {
|
603
|
-
m_elog->write(log::elevel::library,
|
604
|
-
"assertion failed: !m_proxy_data in asio::connection::proxy_write");
|
605
|
-
callback(make_error_code(error::general));
|
606
|
-
return;
|
607
|
-
}
|
608
|
-
|
609
|
-
m_proxy_data->write_buf = m_proxy_data->req.raw();
|
610
|
-
|
611
|
-
m_bufs.push_back(lib::asio::buffer(m_proxy_data->write_buf.data(),
|
612
|
-
m_proxy_data->write_buf.size()));
|
613
|
-
|
614
|
-
m_alog->write(log::alevel::devel,m_proxy_data->write_buf);
|
615
|
-
|
616
|
-
// Set a timer so we don't wait forever for the proxy to respond
|
617
|
-
m_proxy_data->timer = this->set_timer(
|
618
|
-
m_proxy_data->timeout_proxy,
|
619
|
-
lib::bind(
|
620
|
-
&type::handle_proxy_timeout,
|
621
|
-
get_shared(),
|
622
|
-
callback,
|
623
|
-
lib::placeholders::_1
|
624
|
-
)
|
625
|
-
);
|
626
|
-
|
627
|
-
// Send proxy request
|
628
|
-
if (config::enable_multithreading) {
|
629
|
-
lib::asio::async_write(
|
630
|
-
socket_con_type::get_next_layer(),
|
631
|
-
m_bufs,
|
632
|
-
m_strand->wrap(lib::bind(
|
633
|
-
&type::handle_proxy_write, get_shared(),
|
634
|
-
callback,
|
635
|
-
lib::placeholders::_1
|
636
|
-
))
|
637
|
-
);
|
638
|
-
} else {
|
639
|
-
lib::asio::async_write(
|
640
|
-
socket_con_type::get_next_layer(),
|
641
|
-
m_bufs,
|
642
|
-
lib::bind(
|
643
|
-
&type::handle_proxy_write, get_shared(),
|
644
|
-
callback,
|
645
|
-
lib::placeholders::_1
|
646
|
-
)
|
647
|
-
);
|
648
|
-
}
|
649
|
-
}
|
650
|
-
|
651
|
-
void handle_proxy_timeout(init_handler callback, lib::error_code const & ec)
|
652
|
-
{
|
653
|
-
if (ec == transport::error::operation_aborted) {
|
654
|
-
m_alog->write(log::alevel::devel,
|
655
|
-
"asio handle_proxy_write timer cancelled");
|
656
|
-
return;
|
657
|
-
} else if (ec) {
|
658
|
-
log_err(log::elevel::devel,"asio handle_proxy_write",ec);
|
659
|
-
callback(ec);
|
660
|
-
} else {
|
661
|
-
m_alog->write(log::alevel::devel,
|
662
|
-
"asio handle_proxy_write timer expired");
|
663
|
-
cancel_socket_checked();
|
664
|
-
callback(make_error_code(transport::error::timeout));
|
665
|
-
}
|
666
|
-
}
|
667
|
-
|
668
|
-
void handle_proxy_write(init_handler callback,
|
669
|
-
lib::asio::error_code const & ec)
|
670
|
-
{
|
671
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
672
|
-
m_alog->write(log::alevel::devel,
|
673
|
-
"asio connection handle_proxy_write");
|
674
|
-
}
|
675
|
-
|
676
|
-
m_bufs.clear();
|
677
|
-
|
678
|
-
// Timer expired or the operation was aborted for some reason.
|
679
|
-
// Whatever aborted it will be issuing the callback so we are safe to
|
680
|
-
// return
|
681
|
-
if (ec == lib::asio::error::operation_aborted ||
|
682
|
-
lib::asio::is_neg(m_proxy_data->timer->expires_from_now()))
|
683
|
-
{
|
684
|
-
m_elog->write(log::elevel::devel,"write operation aborted");
|
685
|
-
return;
|
686
|
-
}
|
687
|
-
|
688
|
-
if (ec) {
|
689
|
-
log_err(log::elevel::info,"asio handle_proxy_write",ec);
|
690
|
-
m_proxy_data->timer->cancel();
|
691
|
-
callback(make_error_code(error::pass_through));
|
692
|
-
return;
|
693
|
-
}
|
694
|
-
|
695
|
-
proxy_read(callback);
|
696
|
-
}
|
697
|
-
|
698
|
-
void proxy_read(init_handler callback) {
|
699
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
700
|
-
m_alog->write(log::alevel::devel,"asio connection proxy_read");
|
701
|
-
}
|
702
|
-
|
703
|
-
if (!m_proxy_data) {
|
704
|
-
m_elog->write(log::elevel::library,
|
705
|
-
"assertion failed: !m_proxy_data in asio::connection::proxy_read");
|
706
|
-
m_proxy_data->timer->cancel();
|
707
|
-
callback(make_error_code(error::general));
|
708
|
-
return;
|
709
|
-
}
|
710
|
-
|
711
|
-
if (config::enable_multithreading) {
|
712
|
-
lib::asio::async_read_until(
|
713
|
-
socket_con_type::get_next_layer(),
|
714
|
-
m_proxy_data->read_buf,
|
715
|
-
"\r\n\r\n",
|
716
|
-
m_strand->wrap(lib::bind(
|
717
|
-
&type::handle_proxy_read, get_shared(),
|
718
|
-
callback,
|
719
|
-
lib::placeholders::_1, lib::placeholders::_2
|
720
|
-
))
|
721
|
-
);
|
722
|
-
} else {
|
723
|
-
lib::asio::async_read_until(
|
724
|
-
socket_con_type::get_next_layer(),
|
725
|
-
m_proxy_data->read_buf,
|
726
|
-
"\r\n\r\n",
|
727
|
-
lib::bind(
|
728
|
-
&type::handle_proxy_read, get_shared(),
|
729
|
-
callback,
|
730
|
-
lib::placeholders::_1, lib::placeholders::_2
|
731
|
-
)
|
732
|
-
);
|
733
|
-
}
|
734
|
-
}
|
735
|
-
|
736
|
-
/// Proxy read callback
|
737
|
-
/**
|
738
|
-
* @param init_handler The function to call back
|
739
|
-
* @param ec The status code
|
740
|
-
* @param bytes_transferred The number of bytes read
|
741
|
-
*/
|
742
|
-
void handle_proxy_read(init_handler callback,
|
743
|
-
lib::asio::error_code const & ec, size_t)
|
744
|
-
{
|
745
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
746
|
-
m_alog->write(log::alevel::devel,
|
747
|
-
"asio connection handle_proxy_read");
|
748
|
-
}
|
749
|
-
|
750
|
-
// Timer expired or the operation was aborted for some reason.
|
751
|
-
// Whatever aborted it will be issuing the callback so we are safe to
|
752
|
-
// return
|
753
|
-
if (ec == lib::asio::error::operation_aborted ||
|
754
|
-
lib::asio::is_neg(m_proxy_data->timer->expires_from_now()))
|
755
|
-
{
|
756
|
-
m_elog->write(log::elevel::devel,"read operation aborted");
|
757
|
-
return;
|
758
|
-
}
|
759
|
-
|
760
|
-
// At this point there is no need to wait for the timer anymore
|
761
|
-
m_proxy_data->timer->cancel();
|
762
|
-
|
763
|
-
if (ec) {
|
764
|
-
m_elog->write(log::elevel::info,
|
765
|
-
"asio handle_proxy_read error: "+ec.message());
|
766
|
-
callback(make_error_code(error::pass_through));
|
767
|
-
} else {
|
768
|
-
if (!m_proxy_data) {
|
769
|
-
m_elog->write(log::elevel::library,
|
770
|
-
"assertion failed: !m_proxy_data in asio::connection::handle_proxy_read");
|
771
|
-
callback(make_error_code(error::general));
|
772
|
-
return;
|
773
|
-
}
|
774
|
-
|
775
|
-
std::istream input(&m_proxy_data->read_buf);
|
776
|
-
|
777
|
-
m_proxy_data->res.consume(input);
|
778
|
-
|
779
|
-
if (!m_proxy_data->res.headers_ready()) {
|
780
|
-
// we read until the headers were done in theory but apparently
|
781
|
-
// they aren't. Internal endpoint error.
|
782
|
-
callback(make_error_code(error::general));
|
783
|
-
return;
|
784
|
-
}
|
785
|
-
|
786
|
-
m_alog->write(log::alevel::devel,m_proxy_data->res.raw());
|
787
|
-
|
788
|
-
if (m_proxy_data->res.get_status_code() != http::status_code::ok) {
|
789
|
-
// got an error response back
|
790
|
-
// TODO: expose this error in a programmatically accessible way?
|
791
|
-
// if so, see below for an option on how to do this.
|
792
|
-
std::stringstream s;
|
793
|
-
s << "Proxy connection error: "
|
794
|
-
<< m_proxy_data->res.get_status_code()
|
795
|
-
<< " ("
|
796
|
-
<< m_proxy_data->res.get_status_msg()
|
797
|
-
<< ")";
|
798
|
-
m_elog->write(log::elevel::info,s.str());
|
799
|
-
callback(make_error_code(error::proxy_failed));
|
800
|
-
return;
|
801
|
-
}
|
802
|
-
|
803
|
-
// we have successfully established a connection to the proxy, now
|
804
|
-
// we can continue and the proxy will transparently forward the
|
805
|
-
// WebSocket connection.
|
806
|
-
|
807
|
-
// TODO: decide if we want an on_proxy callback that would allow
|
808
|
-
// access to the proxy response.
|
809
|
-
|
810
|
-
// free the proxy buffers and req/res objects as they aren't needed
|
811
|
-
// anymore
|
812
|
-
m_proxy_data.reset();
|
813
|
-
|
814
|
-
// Continue with post proxy initialization
|
815
|
-
post_init(callback);
|
816
|
-
}
|
817
|
-
}
|
818
|
-
|
819
|
-
/// read at least num_bytes bytes into buf and then call handler.
|
820
|
-
void async_read_at_least(size_t num_bytes, char *buf, size_t len,
|
821
|
-
read_handler handler)
|
822
|
-
{
|
823
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
824
|
-
std::stringstream s;
|
825
|
-
s << "asio async_read_at_least: " << num_bytes;
|
826
|
-
m_alog->write(log::alevel::devel,s.str());
|
827
|
-
}
|
828
|
-
|
829
|
-
// TODO: safety vs speed ?
|
830
|
-
// maybe move into an if devel block
|
831
|
-
/*if (num_bytes > len) {
|
832
|
-
m_elog->write(log::elevel::devel,
|
833
|
-
"asio async_read_at_least error::invalid_num_bytes");
|
834
|
-
handler(make_error_code(transport::error::invalid_num_bytes),
|
835
|
-
size_t(0));
|
836
|
-
return;
|
837
|
-
}*/
|
838
|
-
|
839
|
-
if (config::enable_multithreading) {
|
840
|
-
lib::asio::async_read(
|
841
|
-
socket_con_type::get_socket(),
|
842
|
-
lib::asio::buffer(buf,len),
|
843
|
-
lib::asio::transfer_at_least(num_bytes),
|
844
|
-
m_strand->wrap(make_custom_alloc_handler(
|
845
|
-
m_read_handler_allocator,
|
846
|
-
lib::bind(
|
847
|
-
&type::handle_async_read, get_shared(),
|
848
|
-
handler,
|
849
|
-
lib::placeholders::_1, lib::placeholders::_2
|
850
|
-
)
|
851
|
-
))
|
852
|
-
);
|
853
|
-
} else {
|
854
|
-
lib::asio::async_read(
|
855
|
-
socket_con_type::get_socket(),
|
856
|
-
lib::asio::buffer(buf,len),
|
857
|
-
lib::asio::transfer_at_least(num_bytes),
|
858
|
-
make_custom_alloc_handler(
|
859
|
-
m_read_handler_allocator,
|
860
|
-
lib::bind(
|
861
|
-
&type::handle_async_read, get_shared(),
|
862
|
-
handler,
|
863
|
-
lib::placeholders::_1, lib::placeholders::_2
|
864
|
-
)
|
865
|
-
)
|
866
|
-
);
|
867
|
-
}
|
868
|
-
|
869
|
-
}
|
870
|
-
|
871
|
-
void handle_async_read(read_handler handler, lib::asio::error_code const & ec,
|
872
|
-
size_t bytes_transferred)
|
873
|
-
{
|
874
|
-
m_alog->write(log::alevel::devel, "asio con handle_async_read");
|
875
|
-
|
876
|
-
// translate asio error codes into more lib::error_codes
|
877
|
-
lib::error_code tec;
|
878
|
-
if (ec == lib::asio::error::eof) {
|
879
|
-
tec = make_error_code(transport::error::eof);
|
880
|
-
} else if (ec) {
|
881
|
-
// We don't know much more about the error at this point. As our
|
882
|
-
// socket/security policy if it knows more:
|
883
|
-
tec = socket_con_type::translate_ec(ec);
|
884
|
-
m_tec = ec;
|
885
|
-
|
886
|
-
if (tec == transport::error::tls_error ||
|
887
|
-
tec == transport::error::pass_through)
|
888
|
-
{
|
889
|
-
// These are aggregate/catch all errors. Log some human readable
|
890
|
-
// information to the info channel to give library users some
|
891
|
-
// more details about why the upstream method may have failed.
|
892
|
-
log_err(log::elevel::info,"asio async_read_at_least",ec);
|
893
|
-
}
|
894
|
-
}
|
895
|
-
if (handler) {
|
896
|
-
handler(tec,bytes_transferred);
|
897
|
-
} else {
|
898
|
-
// This can happen in cases where the connection is terminated while
|
899
|
-
// the transport is waiting on a read.
|
900
|
-
m_alog->write(log::alevel::devel,
|
901
|
-
"handle_async_read called with null read handler");
|
902
|
-
}
|
903
|
-
}
|
904
|
-
|
905
|
-
/// Initiate a potentially asyncronous write of the given buffer
|
906
|
-
void async_write(const char* buf, size_t len, write_handler handler) {
|
907
|
-
m_bufs.push_back(lib::asio::buffer(buf,len));
|
908
|
-
|
909
|
-
if (config::enable_multithreading) {
|
910
|
-
lib::asio::async_write(
|
911
|
-
socket_con_type::get_socket(),
|
912
|
-
m_bufs,
|
913
|
-
m_strand->wrap(make_custom_alloc_handler(
|
914
|
-
m_write_handler_allocator,
|
915
|
-
lib::bind(
|
916
|
-
&type::handle_async_write, get_shared(),
|
917
|
-
handler,
|
918
|
-
lib::placeholders::_1, lib::placeholders::_2
|
919
|
-
)
|
920
|
-
))
|
921
|
-
);
|
922
|
-
} else {
|
923
|
-
lib::asio::async_write(
|
924
|
-
socket_con_type::get_socket(),
|
925
|
-
m_bufs,
|
926
|
-
make_custom_alloc_handler(
|
927
|
-
m_write_handler_allocator,
|
928
|
-
lib::bind(
|
929
|
-
&type::handle_async_write, get_shared(),
|
930
|
-
handler,
|
931
|
-
lib::placeholders::_1, lib::placeholders::_2
|
932
|
-
)
|
933
|
-
)
|
934
|
-
);
|
935
|
-
}
|
936
|
-
}
|
937
|
-
|
938
|
-
/// Initiate a potentially asyncronous write of the given buffers
|
939
|
-
void async_write(std::vector<buffer> const & bufs, write_handler handler) {
|
940
|
-
std::vector<buffer>::const_iterator it;
|
941
|
-
|
942
|
-
for (it = bufs.begin(); it != bufs.end(); ++it) {
|
943
|
-
m_bufs.push_back(lib::asio::buffer((*it).buf,(*it).len));
|
944
|
-
}
|
945
|
-
|
946
|
-
if (config::enable_multithreading) {
|
947
|
-
lib::asio::async_write(
|
948
|
-
socket_con_type::get_socket(),
|
949
|
-
m_bufs,
|
950
|
-
m_strand->wrap(make_custom_alloc_handler(
|
951
|
-
m_write_handler_allocator,
|
952
|
-
lib::bind(
|
953
|
-
&type::handle_async_write, get_shared(),
|
954
|
-
handler,
|
955
|
-
lib::placeholders::_1, lib::placeholders::_2
|
956
|
-
)
|
957
|
-
))
|
958
|
-
);
|
959
|
-
} else {
|
960
|
-
lib::asio::async_write(
|
961
|
-
socket_con_type::get_socket(),
|
962
|
-
m_bufs,
|
963
|
-
make_custom_alloc_handler(
|
964
|
-
m_write_handler_allocator,
|
965
|
-
lib::bind(
|
966
|
-
&type::handle_async_write, get_shared(),
|
967
|
-
handler,
|
968
|
-
lib::placeholders::_1, lib::placeholders::_2
|
969
|
-
)
|
970
|
-
)
|
971
|
-
);
|
972
|
-
}
|
973
|
-
}
|
974
|
-
|
975
|
-
/// Async write callback
|
976
|
-
/**
|
977
|
-
* @param ec The status code
|
978
|
-
* @param bytes_transferred The number of bytes read
|
979
|
-
*/
|
980
|
-
void handle_async_write(write_handler handler, lib::asio::error_code const & ec, size_t) {
|
981
|
-
m_bufs.clear();
|
982
|
-
lib::error_code tec;
|
983
|
-
if (ec) {
|
984
|
-
log_err(log::elevel::info,"asio async_write",ec);
|
985
|
-
tec = make_error_code(transport::error::pass_through);
|
986
|
-
}
|
987
|
-
if (handler) {
|
988
|
-
handler(tec);
|
989
|
-
} else {
|
990
|
-
// This can happen in cases where the connection is terminated while
|
991
|
-
// the transport is waiting on a read.
|
992
|
-
m_alog->write(log::alevel::devel,
|
993
|
-
"handle_async_write called with null write handler");
|
994
|
-
}
|
995
|
-
}
|
996
|
-
|
997
|
-
/// Set Connection Handle
|
998
|
-
/**
|
999
|
-
* See common/connection_hdl.hpp for information
|
1000
|
-
*
|
1001
|
-
* @param hdl A connection_hdl that the transport will use to refer
|
1002
|
-
* to itself
|
1003
|
-
*/
|
1004
|
-
void set_handle(connection_hdl hdl) {
|
1005
|
-
m_connection_hdl = hdl;
|
1006
|
-
socket_con_type::set_handle(hdl);
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
/// Trigger the on_interrupt handler
|
1010
|
-
/**
|
1011
|
-
* This needs to be thread safe
|
1012
|
-
*/
|
1013
|
-
lib::error_code interrupt(interrupt_handler handler) {
|
1014
|
-
if (config::enable_multithreading) {
|
1015
|
-
m_io_service->post(m_strand->wrap(handler));
|
1016
|
-
} else {
|
1017
|
-
m_io_service->post(handler);
|
1018
|
-
}
|
1019
|
-
return lib::error_code();
|
1020
|
-
}
|
1021
|
-
|
1022
|
-
lib::error_code dispatch(dispatch_handler handler) {
|
1023
|
-
if (config::enable_multithreading) {
|
1024
|
-
m_io_service->post(m_strand->wrap(handler));
|
1025
|
-
} else {
|
1026
|
-
m_io_service->post(handler);
|
1027
|
-
}
|
1028
|
-
return lib::error_code();
|
1029
|
-
}
|
1030
|
-
|
1031
|
-
/*void handle_interrupt(interrupt_handler handler) {
|
1032
|
-
handler();
|
1033
|
-
}*/
|
1034
|
-
|
1035
|
-
/// close and clean up the underlying socket
|
1036
|
-
void async_shutdown(shutdown_handler callback) {
|
1037
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
1038
|
-
m_alog->write(log::alevel::devel,"asio connection async_shutdown");
|
1039
|
-
}
|
1040
|
-
|
1041
|
-
timer_ptr shutdown_timer;
|
1042
|
-
shutdown_timer = set_timer(
|
1043
|
-
config::timeout_socket_shutdown,
|
1044
|
-
lib::bind(
|
1045
|
-
&type::handle_async_shutdown_timeout,
|
1046
|
-
get_shared(),
|
1047
|
-
shutdown_timer,
|
1048
|
-
callback,
|
1049
|
-
lib::placeholders::_1
|
1050
|
-
)
|
1051
|
-
);
|
1052
|
-
|
1053
|
-
socket_con_type::async_shutdown(
|
1054
|
-
lib::bind(
|
1055
|
-
&type::handle_async_shutdown,
|
1056
|
-
get_shared(),
|
1057
|
-
shutdown_timer,
|
1058
|
-
callback,
|
1059
|
-
lib::placeholders::_1
|
1060
|
-
)
|
1061
|
-
);
|
1062
|
-
}
|
1063
|
-
|
1064
|
-
/// Async shutdown timeout handler
|
1065
|
-
/**
|
1066
|
-
* @param shutdown_timer A pointer to the timer to keep it in scope
|
1067
|
-
* @param callback The function to call back
|
1068
|
-
* @param ec The status code
|
1069
|
-
*/
|
1070
|
-
void handle_async_shutdown_timeout(timer_ptr, init_handler callback,
|
1071
|
-
lib::error_code const & ec)
|
1072
|
-
{
|
1073
|
-
lib::error_code ret_ec;
|
1074
|
-
|
1075
|
-
if (ec) {
|
1076
|
-
if (ec == transport::error::operation_aborted) {
|
1077
|
-
m_alog->write(log::alevel::devel,
|
1078
|
-
"asio socket shutdown timer cancelled");
|
1079
|
-
return;
|
1080
|
-
}
|
1081
|
-
|
1082
|
-
log_err(log::elevel::devel,"asio handle_async_shutdown_timeout",ec);
|
1083
|
-
ret_ec = ec;
|
1084
|
-
} else {
|
1085
|
-
ret_ec = make_error_code(transport::error::timeout);
|
1086
|
-
}
|
1087
|
-
|
1088
|
-
m_alog->write(log::alevel::devel,
|
1089
|
-
"Asio transport socket shutdown timed out");
|
1090
|
-
cancel_socket_checked();
|
1091
|
-
callback(ret_ec);
|
1092
|
-
}
|
1093
|
-
|
1094
|
-
void handle_async_shutdown(timer_ptr shutdown_timer, shutdown_handler
|
1095
|
-
callback, lib::asio::error_code const & ec)
|
1096
|
-
{
|
1097
|
-
if (ec == lib::asio::error::operation_aborted ||
|
1098
|
-
lib::asio::is_neg(shutdown_timer->expires_from_now()))
|
1099
|
-
{
|
1100
|
-
m_alog->write(log::alevel::devel,"async_shutdown cancelled");
|
1101
|
-
return;
|
1102
|
-
}
|
1103
|
-
|
1104
|
-
shutdown_timer->cancel();
|
1105
|
-
|
1106
|
-
lib::error_code tec;
|
1107
|
-
if (ec) {
|
1108
|
-
if (ec == lib::asio::error::not_connected) {
|
1109
|
-
// The socket was already closed when we tried to close it. This
|
1110
|
-
// happens periodically (usually if a read or write fails
|
1111
|
-
// earlier and if it is a real error will be caught at another
|
1112
|
-
// level of the stack.
|
1113
|
-
} else {
|
1114
|
-
// We don't know anything more about this error, give our
|
1115
|
-
// socket/security policy a crack at it.
|
1116
|
-
tec = socket_con_type::translate_ec(ec);
|
1117
|
-
m_tec = ec;
|
1118
|
-
|
1119
|
-
// all other errors are effectively pass through errors of
|
1120
|
-
// some sort so print some detail on the info channel for
|
1121
|
-
// library users to look up if needed.
|
1122
|
-
log_err(log::elevel::info,"asio async_shutdown",ec);
|
1123
|
-
}
|
1124
|
-
} else {
|
1125
|
-
if (m_alog->static_test(log::alevel::devel)) {
|
1126
|
-
m_alog->write(log::alevel::devel,
|
1127
|
-
"asio con handle_async_shutdown");
|
1128
|
-
}
|
1129
|
-
}
|
1130
|
-
callback(tec);
|
1131
|
-
}
|
1132
|
-
|
1133
|
-
/// Cancel the underlying socket and log any errors
|
1134
|
-
void cancel_socket_checked() {
|
1135
|
-
lib::asio::error_code cec = socket_con_type::cancel_socket();
|
1136
|
-
if (cec) {
|
1137
|
-
if (cec == lib::asio::error::operation_not_supported) {
|
1138
|
-
// cancel not supported on this OS, ignore and log at dev level
|
1139
|
-
m_alog->write(log::alevel::devel, "socket cancel not supported");
|
1140
|
-
} else {
|
1141
|
-
log_err(log::elevel::warn, "socket cancel failed", cec);
|
1142
|
-
}
|
1143
|
-
}
|
1144
|
-
}
|
1145
|
-
|
1146
|
-
private:
|
1147
|
-
/// Convenience method for logging the code and message for an error_code
|
1148
|
-
template <typename error_type>
|
1149
|
-
void log_err(log::level l, const char * msg, const error_type & ec) {
|
1150
|
-
std::stringstream s;
|
1151
|
-
s << msg << " error: " << ec << " (" << ec.message() << ")";
|
1152
|
-
m_elog->write(l,s.str());
|
1153
|
-
}
|
1154
|
-
|
1155
|
-
// static settings
|
1156
|
-
const bool m_is_server;
|
1157
|
-
lib::shared_ptr<alog_type> m_alog;
|
1158
|
-
lib::shared_ptr<elog_type> m_elog;
|
1159
|
-
|
1160
|
-
struct proxy_data {
|
1161
|
-
proxy_data() : timeout_proxy(config::timeout_proxy) {}
|
1162
|
-
|
1163
|
-
request_type req;
|
1164
|
-
response_type res;
|
1165
|
-
std::string write_buf;
|
1166
|
-
lib::asio::streambuf read_buf;
|
1167
|
-
long timeout_proxy;
|
1168
|
-
timer_ptr timer;
|
1169
|
-
};
|
1170
|
-
|
1171
|
-
std::string m_proxy;
|
1172
|
-
lib::shared_ptr<proxy_data> m_proxy_data;
|
1173
|
-
|
1174
|
-
// transport resources
|
1175
|
-
io_service_ptr m_io_service;
|
1176
|
-
strand_ptr m_strand;
|
1177
|
-
connection_hdl m_connection_hdl;
|
1178
|
-
|
1179
|
-
std::vector<lib::asio::const_buffer> m_bufs;
|
1180
|
-
|
1181
|
-
/// Detailed internal error code
|
1182
|
-
lib::asio::error_code m_tec;
|
1183
|
-
|
1184
|
-
// Handlers
|
1185
|
-
tcp_init_handler m_tcp_pre_init_handler;
|
1186
|
-
tcp_init_handler m_tcp_post_init_handler;
|
1187
|
-
|
1188
|
-
handler_allocator m_read_handler_allocator;
|
1189
|
-
handler_allocator m_write_handler_allocator;
|
1190
|
-
};
|
1191
|
-
|
1192
|
-
|
1193
|
-
} // namespace asio
|
1194
|
-
} // namespace transport
|
1195
|
-
} // namespace websocketpp
|
1196
|
-
|
1197
|
-
#endif // WEBSOCKETPP_TRANSPORT_ASIO_CON_HPP
|