passenger 6.0.15 → 6.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +46 -2
- data/build/integration_tests.rb +6 -6
- data/build/ruby_tests.rb +1 -1
- data/build/test_basics.rb +0 -1
- data/src/agent/Core/Config.h +1 -1
- data/src/agent/Core/Controller/Config.h +1 -1
- data/src/agent/Core/SpawningKit/PipeWatcher.h +18 -3
- data/src/agent/Watchdog/Config.h +1 -1
- data/src/cxx_supportlib/Constants.h +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/align/aligned_alloc.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/array.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_executor.hpp +344 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_completion_handler.hpp +686 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/any_io_executor.hpp +56 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_allocator.hpp +81 -25
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_cancellation_slot.hpp +68 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/associated_executor.hpp +46 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_datagram_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_deadline_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_file.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_random_access_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_raw_socket.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_readable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_seq_packet_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_serial_port.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_signal_set.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_socket_acceptor.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_file.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_stream_socket.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_waitable_timer.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/basic_writable_pipe.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_allocator.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_cancellation_slot.hpp +14 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/bind_executor.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/compose.hpp +30 -305
- data/src/cxx_supportlib/vendor-modified/boost/asio/consign.hpp +90 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/defer.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/bind_handler.hpp +98 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/composed_work.hpp +330 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/config.hpp +81 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_alloc_helpers.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/handler_work.hpp +19 -11
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/descriptor_ops.ipp +37 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/handler_tracking.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/select_reactor.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/socket_ops.ipp +10 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/impl/strand_executor_service.hpp +14 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/memory.hpp +18 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/utility.hpp +1 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/detail/work_dispatcher.hpp +7 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/dispatch.hpp +4 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/allocator.hpp +22 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/any_executor.hpp +447 -142
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking.hpp +57 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/blocking_adaptation.hpp +51 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_execute.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/bulk_guarantee.hpp +41 -4
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/connect.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/context_as.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/detail/as_operation.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/execute.hpp +9 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/executor.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/mapping.hpp +52 -8
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/occupancy.hpp +13 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/operation_state.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/outstanding_work.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/receiver.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/relationship.hpp +39 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/schedule.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/scheduler.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/sender.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_done.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_error.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/set_value.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/start.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/execution/submit.hpp +5 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/executor_work_guard.hpp +6 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/basic_concurrent_channel.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/channel_traits.hpp +70 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/co_composed.hpp +146 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/coro.hpp +35 -5
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_handler.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_operation.hpp +7 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/channel_service.hpp +180 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_completion_handler.hpp +171 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/coro_promise_allocator.hpp +89 -66
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/partial_promise.hpp +66 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/as_single.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/co_composed.hpp +1134 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/coro.hpp +130 -106
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/parallel_group.hpp +377 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/promise.hpp +168 -29
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_coro.hpp +149 -203
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/impl/use_promise.hpp +68 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/parallel_group.hpp +256 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/promise.hpp +76 -80
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_coro.hpp +40 -14
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/use_promise.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_completion_executor.ipp +132 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/any_io_executor.ipp +12 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/append.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/as_tuple.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_read_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/buffered_write_stream.hpp +25 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/co_spawn.hpp +34 -45
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/connect.hpp +28 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/consign.hpp +204 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/defer.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/deferred.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/dispatch.hpp +21 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/handler_alloc_hook.ipp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/post.hpp +33 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/prepend.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read.hpp +40 -9
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/read_until.hpp +104 -24
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/redirect_error.hpp +12 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/spawn.hpp +70 -15
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/src.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/use_future.hpp +25 -0
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write.hpp +38 -30
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/write_at.hpp +27 -6
- data/src/cxx_supportlib/vendor-modified/boost/asio/io_context.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v4.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ip/impl/network_v6.ipp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/posix/basic_stream_descriptor.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/post.hpp +17 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/spawn.hpp +3 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/ssl/detail/io.hpp +13 -3
- data/src/cxx_supportlib/vendor-modified/boost/asio/strand.hpp +11 -7
- data/src/cxx_supportlib/vendor-modified/boost/asio/system_executor.hpp +0 -13
- data/src/cxx_supportlib/vendor-modified/boost/asio/thread_pool.hpp +23 -18
- data/src/cxx_supportlib/vendor-modified/boost/asio/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_object_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_overlapped_handle.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_random_access_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio/windows/basic_stream_handle.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/asio.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/bind/bind.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/chrono/config.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/inlined/mac/chrono.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/chrono/detail/scan_keyword.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/duration.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_io.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_put.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/duration_units.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/time_point_io.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/chrono/io/utility/ios_base_state_ptr.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/chrono/time_point.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/circular_buffer/details.hpp +5 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang.hpp +10 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/clang_version.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/gcc.hpp +9 -3
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/sunpro_cc.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/visualc.hpp +8 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/compiler/xlcpp.hpp +4 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/detail/suffix.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/header_deprecated.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libcpp.hpp +9 -0
- data/src/cxx_supportlib/vendor-modified/boost/config/stdlib/libstdcpp3.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/container/allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/container_fwd.hpp +29 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/deque.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/advanced_insert_int.hpp +80 -95
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_begin.hpp +10 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/config_end.hpp +3 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/copy_move_algo.hpp +738 -34
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/destroyers.hpp +38 -10
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/flat_tree.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/iterator.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/detail/workaround.hpp +3 -4
- data/src/cxx_supportlib/vendor-modified/boost/container/devector.hpp +1150 -1213
- data/src/cxx_supportlib/vendor-modified/boost/container/node_allocator.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/options.hpp +104 -12
- data/src/cxx_supportlib/vendor-modified/boost/container/stable_vector.hpp +1 -0
- data/src/cxx_supportlib/vendor-modified/boost/container/string.hpp +11 -1
- data/src/cxx_supportlib/vendor-modified/boost/container/vector.hpp +31 -331
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_mix.hpp +113 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_range.hpp +173 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_tuple.hpp +133 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash.hpp +461 -566
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/hash_fwd.hpp +24 -24
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_contiguous_range.hpp +91 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_described_class.hpp +38 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_range.hpp +73 -0
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/is_unordered_range.hpp +39 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/bit.hpp +32 -4
- data/src/cxx_supportlib/vendor-modified/boost/core/detail/string_view.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/core/empty_value.hpp +16 -16
- data/src/cxx_supportlib/vendor-modified/boost/core/fclose_deleter.hpp +46 -0
- data/src/cxx_supportlib/vendor-modified/boost/date_time/date.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/formatters_limited.hpp +3 -3
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_date.hpp +12 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/parsers.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/gregorian_calendar.ipp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/iso_format.hpp +13 -13
- data/src/cxx_supportlib/vendor-modified/boost/date_time/local_time/local_date_time.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters.hpp +4 -4
- data/src/cxx_supportlib/vendor-modified/boost/date_time/posix_time/time_formatters_limited.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/date_time/special_values_parser.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_facet.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/date_time/time_parsing.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/describe/bases.hpp +50 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/config.hpp +40 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/cx_streq.hpp +30 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/detail/void_t.hpp +32 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/members.hpp +159 -0
- data/src/cxx_supportlib/vendor-modified/boost/describe/modifiers.hpp +33 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/avltree_algorithms.hpp +9 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/bstree_algorithms.hpp +45 -45
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/any_node_and_algorithms.hpp +8 -8
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/bstree_algorithms_base.hpp +37 -38
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/iterator.hpp +16 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/detail/workaround.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/hashtable.hpp +145 -90
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/pack_options.hpp +2 -0
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/rbtree_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/sgtree_algorithms.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/splaytree_algorithms.hpp +11 -9
- data/src/cxx_supportlib/vendor-modified/boost/intrusive/treap_algorithms.hpp +7 -7
- data/src/cxx_supportlib/vendor-modified/boost/iterator/iterator_facade.hpp +106 -25
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_lexical_streams.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/converter_numeric.hpp +8 -5
- data/src/cxx_supportlib/vendor-modified/boost/lexical_cast/detail/lcast_unsigned_converters.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/adaptive_sort_merge.hpp +4 -2
- data/src/cxx_supportlib/vendor-modified/boost/move/algo/detail/pdqsort.hpp +2 -1
- data/src/cxx_supportlib/vendor-modified/boost/move/detail/type_traits.hpp +8 -4
- data/src/cxx_supportlib/vendor-modified/boost/mp11/bind.hpp +111 -0
- data/src/cxx_supportlib/vendor-modified/boost/mp11/version.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/int_float_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/sign_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +5 -5
- data/src/cxx_supportlib/vendor-modified/boost/preprocessor/variadic/has_opt.hpp +6 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp +11 -2
- data/src/cxx_supportlib/vendor-modified/boost/smart_ptr/intrusive_ptr.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/config.hpp +7 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_category_impl.hpp +10 -1
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_code.hpp +38 -43
- data/src/cxx_supportlib/vendor-modified/boost/system/detail/error_condition.hpp +52 -0
- data/src/cxx_supportlib/vendor-modified/boost/throw_exception.hpp +1 -1
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_function_ptr_helper.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp +27 -27
- data/src/cxx_supportlib/vendor-modified/boost/type_traits/intrinsics.hpp +22 -8
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/fca.hpp +37 -7
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/foa.hpp +1921 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/implementation.hpp +66 -82
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/prime_fmod.hpp +6 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/type_traits.hpp +109 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/detail/xmx.hpp +75 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/hash_traits.hpp +45 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map.hpp +732 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_map_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set.hpp +586 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_flat_set_fwd.hpp +49 -0
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_map.hpp +166 -66
- data/src/cxx_supportlib/vendor-modified/boost/unordered/unordered_set.hpp +145 -28
- data/src/cxx_supportlib/vendor-modified/boost/version.hpp +2 -2
- data/src/cxx_supportlib/vendor-modified/jsoncpp/json-forwards.h +143 -261
- data/src/cxx_supportlib/vendor-modified/jsoncpp/json.h +763 -947
- data/src/cxx_supportlib/vendor-modified/jsoncpp/jsoncpp.cpp +1477 -1487
- data/src/cxx_supportlib/vendor-modified/websocketpp/websocketpp/common/md5.hpp +1 -1
- data/src/ruby_native_extension/extconf.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/packaging.rb +1 -0
- data/src/ruby_supportlib/phusion_passenger/platform_info/apache.rb +3 -2
- data/src/ruby_supportlib/phusion_passenger/platform_info/binary_compatibility.rb +1 -1
- data/src/ruby_supportlib/phusion_passenger/platform_info/operating_system.rb +5 -5
- data/src/ruby_supportlib/phusion_passenger.rb +5 -5
- metadata +36 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/align.hpp +0 -19
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of.hpp +0 -54
- data/src/cxx_supportlib/vendor-modified/boost/align/alignment_of_forward.hpp +0 -20
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/align_cxx11.hpp +0 -21
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/aligned_alloc.hpp +0 -52
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of.hpp +0 -31
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/alignment_of_cxx11.hpp +0 -23
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/element_type.hpp +0 -91
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/integral_constant.hpp +0 -53
- data/src/cxx_supportlib/vendor-modified/boost/align/detail/min_size.hpp +0 -26
- data/src/cxx_supportlib/vendor-modified/boost/asio/experimental/detail/completion_handler_erasure.hpp +0 -196
- data/src/cxx_supportlib/vendor-modified/boost/asio/impl/compose.hpp +0 -709
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/float_functions.hpp +0 -336
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/hash_float.hpp +0 -271
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/detail/limits.hpp +0 -62
- data/src/cxx_supportlib/vendor-modified/boost/container_hash/extensions.hpp +0 -361
- data/src/cxx_supportlib/vendor-modified/boost/detail/container_fwd.hpp +0 -157
@@ -1060,10 +1060,20 @@ struct associator<Associator,
|
|
1060
1060
|
DefaultCandidate>
|
1061
1061
|
: Associator<ReadHandler, DefaultCandidate>
|
1062
1062
|
{
|
1063
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1064
|
-
|
1063
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1064
|
+
get(const detail::read_until_delim_op_v1<AsyncReadStream,
|
1065
|
+
DynamicBuffer_v1, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
1066
|
+
{
|
1067
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
1071
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
1072
|
+
get(const detail::read_until_delim_op_v1<AsyncReadStream,
|
1065
1073
|
DynamicBuffer_v1, ReadHandler>& h,
|
1066
|
-
const DefaultCandidate& c
|
1074
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
1075
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
1076
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1067
1077
|
{
|
1068
1078
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1069
1079
|
}
|
@@ -1367,10 +1377,20 @@ struct associator<Associator,
|
|
1367
1377
|
DefaultCandidate>
|
1368
1378
|
: Associator<ReadHandler, DefaultCandidate>
|
1369
1379
|
{
|
1370
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1371
|
-
|
1380
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1381
|
+
get(const detail::read_until_delim_string_op_v1<AsyncReadStream,
|
1382
|
+
DynamicBuffer_v1, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
1383
|
+
{
|
1384
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1385
|
+
}
|
1386
|
+
|
1387
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
1388
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
1389
|
+
get(const detail::read_until_delim_string_op_v1<AsyncReadStream,
|
1372
1390
|
DynamicBuffer_v1, ReadHandler>& h,
|
1373
|
-
const DefaultCandidate& c
|
1391
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
1392
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
1393
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1374
1394
|
{
|
1375
1395
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1376
1396
|
}
|
@@ -1683,10 +1703,20 @@ struct associator<Associator,
|
|
1683
1703
|
DefaultCandidate>
|
1684
1704
|
: Associator<ReadHandler, DefaultCandidate>
|
1685
1705
|
{
|
1686
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1687
|
-
|
1706
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1707
|
+
get(const detail::read_until_expr_op_v1<AsyncReadStream,
|
1708
|
+
DynamicBuffer_v1, RegEx, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
1709
|
+
{
|
1710
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
1711
|
+
}
|
1712
|
+
|
1713
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
1714
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
1715
|
+
get(const detail::read_until_expr_op_v1<AsyncReadStream,
|
1688
1716
|
DynamicBuffer_v1, RegEx, ReadHandler>& h,
|
1689
|
-
const DefaultCandidate& c
|
1717
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
1718
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
1719
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
1690
1720
|
{
|
1691
1721
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
1692
1722
|
}
|
@@ -1995,10 +2025,20 @@ struct associator<Associator,
|
|
1995
2025
|
DefaultCandidate>
|
1996
2026
|
: Associator<ReadHandler, DefaultCandidate>
|
1997
2027
|
{
|
1998
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
1999
|
-
|
2028
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2029
|
+
get(const detail::read_until_match_op_v1<AsyncReadStream,
|
2030
|
+
DynamicBuffer_v1, MatchCondition, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
2031
|
+
{
|
2032
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2033
|
+
}
|
2034
|
+
|
2035
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
2036
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
2037
|
+
get(const detail::read_until_match_op_v1<AsyncReadStream,
|
2000
2038
|
DynamicBuffer_v1, MatchCondition, ReadHandler>& h,
|
2001
|
-
const DefaultCandidate& c
|
2039
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
2040
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
2041
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2002
2042
|
{
|
2003
2043
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2004
2044
|
}
|
@@ -2380,10 +2420,20 @@ struct associator<Associator,
|
|
2380
2420
|
DefaultCandidate>
|
2381
2421
|
: Associator<ReadHandler, DefaultCandidate>
|
2382
2422
|
{
|
2383
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2384
|
-
|
2423
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2424
|
+
get(const detail::read_until_delim_op_v2<AsyncReadStream,
|
2425
|
+
DynamicBuffer_v2, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
2426
|
+
{
|
2427
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2428
|
+
}
|
2429
|
+
|
2430
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
2431
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
2432
|
+
get(const detail::read_until_delim_op_v2<AsyncReadStream,
|
2385
2433
|
DynamicBuffer_v2, ReadHandler>& h,
|
2386
|
-
const DefaultCandidate& c
|
2434
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
2435
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
2436
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2387
2437
|
{
|
2388
2438
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2389
2439
|
}
|
@@ -2691,10 +2741,20 @@ struct associator<Associator,
|
|
2691
2741
|
DefaultCandidate>
|
2692
2742
|
: Associator<ReadHandler, DefaultCandidate>
|
2693
2743
|
{
|
2694
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2695
|
-
|
2744
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
2745
|
+
get(const detail::read_until_delim_string_op_v2<AsyncReadStream,
|
2746
|
+
DynamicBuffer_v2, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
2747
|
+
{
|
2748
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
2749
|
+
}
|
2750
|
+
|
2751
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
2752
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
2753
|
+
get(const detail::read_until_delim_string_op_v2<AsyncReadStream,
|
2696
2754
|
DynamicBuffer_v2, ReadHandler>& h,
|
2697
|
-
const DefaultCandidate& c
|
2755
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
2756
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
2757
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
2698
2758
|
{
|
2699
2759
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
2700
2760
|
}
|
@@ -3013,10 +3073,20 @@ struct associator<Associator,
|
|
3013
3073
|
DefaultCandidate>
|
3014
3074
|
: Associator<ReadHandler, DefaultCandidate>
|
3015
3075
|
{
|
3016
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3017
|
-
|
3076
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3077
|
+
get(const detail::read_until_expr_op_v2<AsyncReadStream,
|
3078
|
+
DynamicBuffer_v2, RegEx, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
3079
|
+
{
|
3080
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
3081
|
+
}
|
3082
|
+
|
3083
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
3084
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
3085
|
+
get(const detail::read_until_expr_op_v2<AsyncReadStream,
|
3018
3086
|
DynamicBuffer_v2, RegEx, ReadHandler>& h,
|
3019
|
-
const DefaultCandidate& c
|
3087
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
3088
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
3089
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
3020
3090
|
{
|
3021
3091
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
3022
3092
|
}
|
@@ -3328,10 +3398,20 @@ struct associator<Associator,
|
|
3328
3398
|
DefaultCandidate>
|
3329
3399
|
: Associator<ReadHandler, DefaultCandidate>
|
3330
3400
|
{
|
3331
|
-
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3332
|
-
|
3401
|
+
static typename Associator<ReadHandler, DefaultCandidate>::type
|
3402
|
+
get(const detail::read_until_match_op_v2<AsyncReadStream,
|
3403
|
+
DynamicBuffer_v2, MatchCondition, ReadHandler>& h) BOOST_ASIO_NOEXCEPT
|
3404
|
+
{
|
3405
|
+
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_);
|
3406
|
+
}
|
3407
|
+
|
3408
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
3409
|
+
typename Associator<ReadHandler, DefaultCandidate>::type)
|
3410
|
+
get(const detail::read_until_match_op_v2<AsyncReadStream,
|
3333
3411
|
DynamicBuffer_v2, MatchCondition, ReadHandler>& h,
|
3334
|
-
const DefaultCandidate& c
|
3412
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
3413
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
3414
|
+
Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)))
|
3335
3415
|
{
|
3336
3416
|
return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c);
|
3337
3417
|
}
|
@@ -593,9 +593,18 @@ struct associator<Associator,
|
|
593
593
|
detail::redirect_error_handler<Handler>, DefaultCandidate>
|
594
594
|
: Associator<Handler, DefaultCandidate>
|
595
595
|
{
|
596
|
-
static typename Associator<Handler, DefaultCandidate>::type
|
597
|
-
|
598
|
-
|
596
|
+
static typename Associator<Handler, DefaultCandidate>::type
|
597
|
+
get(const detail::redirect_error_handler<Handler>& h) BOOST_ASIO_NOEXCEPT
|
598
|
+
{
|
599
|
+
return Associator<Handler, DefaultCandidate>::get(h.handler_);
|
600
|
+
}
|
601
|
+
|
602
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
603
|
+
typename Associator<Handler, DefaultCandidate>::type)
|
604
|
+
get(const detail::redirect_error_handler<Handler>& h,
|
605
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
606
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
607
|
+
Associator<Handler, DefaultCandidate>::get(h.handler_, c)))
|
599
608
|
{
|
600
609
|
return Associator<Handler, DefaultCandidate>::get(h.handler_, c);
|
601
610
|
}
|
@@ -22,6 +22,7 @@
|
|
22
22
|
#include <boost/asio/async_result.hpp>
|
23
23
|
#include <boost/asio/bind_executor.hpp>
|
24
24
|
#include <boost/asio/detail/atomic_count.hpp>
|
25
|
+
#include <boost/asio/detail/bind_handler.hpp>
|
25
26
|
#include <boost/asio/detail/handler_alloc_helpers.hpp>
|
26
27
|
#include <boost/asio/detail/handler_cont_helpers.hpp>
|
27
28
|
#include <boost/asio/detail/handler_invoke_helpers.hpp>
|
@@ -46,6 +47,14 @@ namespace boost {
|
|
46
47
|
namespace asio {
|
47
48
|
namespace detail {
|
48
49
|
|
50
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
51
|
+
inline void spawned_thread_rethrow(void* ex)
|
52
|
+
{
|
53
|
+
if (*static_cast<exception_ptr*>(ex))
|
54
|
+
rethrow_exception(*static_cast<exception_ptr*>(ex));
|
55
|
+
}
|
56
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
57
|
+
|
49
58
|
#if defined(BOOST_ASIO_HAS_BOOST_COROUTINE)
|
50
59
|
|
51
60
|
// Spawned thread implementation using Boost.Coroutine.
|
@@ -118,6 +127,8 @@ public:
|
|
118
127
|
{
|
119
128
|
callee_type callee;
|
120
129
|
callee.swap(callee_);
|
130
|
+
if (terminal_)
|
131
|
+
callee();
|
121
132
|
}
|
122
133
|
|
123
134
|
private:
|
@@ -140,8 +151,26 @@ private:
|
|
140
151
|
*spawned_thread_out_ = &spawned_thread;
|
141
152
|
spawned_thread_out_ = 0;
|
142
153
|
spawned_thread.suspend();
|
143
|
-
|
144
|
-
|
154
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
155
|
+
try
|
156
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
157
|
+
{
|
158
|
+
function(&spawned_thread);
|
159
|
+
spawned_thread.terminal_ = true;
|
160
|
+
spawned_thread.suspend();
|
161
|
+
}
|
162
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
163
|
+
catch (const boost::coroutines::detail::forced_unwind&)
|
164
|
+
{
|
165
|
+
throw;
|
166
|
+
}
|
167
|
+
catch (...)
|
168
|
+
{
|
169
|
+
exception_ptr ex = current_exception();
|
170
|
+
spawned_thread.terminal_ = true;
|
171
|
+
spawned_thread.suspend_with(spawned_thread_rethrow, &ex);
|
172
|
+
}
|
173
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
145
174
|
}
|
146
175
|
|
147
176
|
private:
|
@@ -226,7 +255,8 @@ public:
|
|
226
255
|
void destroy()
|
227
256
|
{
|
228
257
|
fiber_type callee = BOOST_ASIO_MOVE_CAST(fiber_type)(callee_);
|
229
|
-
(
|
258
|
+
if (terminal_)
|
259
|
+
fiber_type(BOOST_ASIO_MOVE_CAST(fiber_type)(callee)).resume();
|
230
260
|
}
|
231
261
|
|
232
262
|
private:
|
@@ -250,9 +280,27 @@ private:
|
|
250
280
|
*spawned_thread_out_ = &spawned_thread;
|
251
281
|
spawned_thread_out_ = 0;
|
252
282
|
spawned_thread.suspend();
|
253
|
-
|
254
|
-
|
255
|
-
|
283
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
284
|
+
try
|
285
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
286
|
+
{
|
287
|
+
function(&spawned_thread);
|
288
|
+
spawned_thread.terminal_ = true;
|
289
|
+
spawned_thread.suspend();
|
290
|
+
}
|
291
|
+
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
292
|
+
catch (const boost::context::detail::forced_unwind&)
|
293
|
+
{
|
294
|
+
throw;
|
295
|
+
}
|
296
|
+
catch (...)
|
297
|
+
{
|
298
|
+
exception_ptr ex = current_exception();
|
299
|
+
spawned_thread.terminal_ = true;
|
300
|
+
spawned_thread.suspend_with(spawned_thread_rethrow, &ex);
|
301
|
+
}
|
302
|
+
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
303
|
+
return BOOST_ASIO_MOVE_CAST(fiber_type)(spawned_thread.caller_);
|
256
304
|
}
|
257
305
|
|
258
306
|
private:
|
@@ -963,7 +1011,8 @@ public:
|
|
963
1011
|
BOOST_ASIO_MOVE_ARG(F) f, BOOST_ASIO_MOVE_ARG(H) h)
|
964
1012
|
: executor_(ex),
|
965
1013
|
function_(BOOST_ASIO_MOVE_CAST(F)(f)),
|
966
|
-
handler_(BOOST_ASIO_MOVE_CAST(H)(h))
|
1014
|
+
handler_(BOOST_ASIO_MOVE_CAST(H)(h)),
|
1015
|
+
work_(handler_, executor_)
|
967
1016
|
{
|
968
1017
|
}
|
969
1018
|
|
@@ -985,7 +1034,9 @@ private:
|
|
985
1034
|
function_(yield);
|
986
1035
|
if (!yield.spawned_thread_->has_context_switched())
|
987
1036
|
(post)(yield);
|
988
|
-
|
1037
|
+
detail::binder1<Handler, exception_ptr>
|
1038
|
+
handler(handler_, exception_ptr());
|
1039
|
+
work_.complete(handler, handler.handler_);
|
989
1040
|
}
|
990
1041
|
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
991
1042
|
# if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
@@ -1005,7 +1056,8 @@ private:
|
|
1005
1056
|
exception_ptr ex = current_exception();
|
1006
1057
|
if (!yield.spawned_thread_->has_context_switched())
|
1007
1058
|
(post)(yield);
|
1008
|
-
|
1059
|
+
detail::binder1<Handler, exception_ptr> handler(handler_, ex);
|
1060
|
+
work_.complete(handler, handler.handler_);
|
1009
1061
|
}
|
1010
1062
|
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1011
1063
|
}
|
@@ -1020,8 +1072,9 @@ private:
|
|
1020
1072
|
T result(function_(yield));
|
1021
1073
|
if (!yield.spawned_thread_->has_context_switched())
|
1022
1074
|
(post)(yield);
|
1023
|
-
|
1024
|
-
|
1075
|
+
detail::binder2<Handler, exception_ptr, T>
|
1076
|
+
handler(handler_, exception_ptr(), BOOST_ASIO_MOVE_CAST(T)(result));
|
1077
|
+
work_.complete(handler, handler.handler_);
|
1025
1078
|
}
|
1026
1079
|
#if !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1027
1080
|
# if defined(BOOST_ASIO_HAS_BOOST_CONTEXT_FIBER)
|
@@ -1041,7 +1094,8 @@ private:
|
|
1041
1094
|
exception_ptr ex = current_exception();
|
1042
1095
|
if (!yield.spawned_thread_->has_context_switched())
|
1043
1096
|
(post)(yield);
|
1044
|
-
|
1097
|
+
detail::binder2<Handler, exception_ptr, T> handler(handler_, ex, T());
|
1098
|
+
work_.complete(handler, handler.handler_);
|
1045
1099
|
}
|
1046
1100
|
#endif // !defined(BOOST_ASIO_NO_EXCEPTIONS)
|
1047
1101
|
}
|
@@ -1049,6 +1103,7 @@ private:
|
|
1049
1103
|
Executor executor_;
|
1050
1104
|
Function function_;
|
1051
1105
|
Handler handler_;
|
1106
|
+
handler_work<Handler, Executor> work_;
|
1052
1107
|
};
|
1053
1108
|
|
1054
1109
|
struct spawn_cancellation_signal_emitter
|
@@ -1066,8 +1121,8 @@ template <typename Handler, typename Executor, typename = void>
|
|
1066
1121
|
class spawn_cancellation_handler
|
1067
1122
|
{
|
1068
1123
|
public:
|
1069
|
-
spawn_cancellation_handler(const Handler
|
1070
|
-
: ex_(
|
1124
|
+
spawn_cancellation_handler(const Handler&, const Executor& ex)
|
1125
|
+
: ex_(ex)
|
1071
1126
|
{
|
1072
1127
|
}
|
1073
1128
|
|
@@ -1084,7 +1139,7 @@ public:
|
|
1084
1139
|
|
1085
1140
|
private:
|
1086
1141
|
cancellation_signal signal_;
|
1087
|
-
|
1142
|
+
Executor ex_;
|
1088
1143
|
};
|
1089
1144
|
|
1090
1145
|
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# error Do not compile Asio library source with BOOST_ASIO_HEADER_ONLY defined
|
20
20
|
#endif
|
21
21
|
|
22
|
+
#include <boost/asio/impl/any_completion_executor.ipp>
|
22
23
|
#include <boost/asio/impl/any_io_executor.ipp>
|
23
24
|
#include <boost/asio/impl/cancellation_signal.ipp>
|
24
25
|
#include <boost/asio/impl/connect_pipe.ipp>
|
@@ -212,6 +212,11 @@ public:
|
|
212
212
|
{
|
213
213
|
}
|
214
214
|
|
215
|
+
execution_context& query(execution::context_t) const BOOST_ASIO_NOEXCEPT
|
216
|
+
{
|
217
|
+
return boost::asio::query(system_executor(), execution::context);
|
218
|
+
}
|
219
|
+
|
215
220
|
static BOOST_ASIO_CONSTEXPR Blocking query(execution::blocking_t)
|
216
221
|
{
|
217
222
|
return Blocking();
|
@@ -232,9 +237,14 @@ public:
|
|
232
237
|
template <typename F>
|
233
238
|
void execute(BOOST_ASIO_MOVE_ARG(F) f) const
|
234
239
|
{
|
240
|
+
#if defined(BOOST_ASIO_NO_DEPRECATED)
|
241
|
+
boost::asio::require(system_executor(), Blocking()).execute(
|
242
|
+
promise_invoker<T, F>(p_, BOOST_ASIO_MOVE_CAST(F)(f)));
|
243
|
+
#else // defined(BOOST_ASIO_NO_DEPRECATED)
|
235
244
|
execution::execute(
|
236
245
|
boost::asio::require(system_executor(), Blocking()),
|
237
246
|
promise_invoker<T, F>(p_, BOOST_ASIO_MOVE_CAST(F)(f)));
|
247
|
+
#endif // defined(BOOST_ASIO_NO_DEPRECATED)
|
238
248
|
}
|
239
249
|
|
240
250
|
#if !defined(BOOST_ASIO_NO_TS_EXECUTORS)
|
@@ -990,6 +1000,21 @@ struct query_static_constexpr_member<
|
|
990
1000
|
|
991
1001
|
#endif // !defined(BOOST_ASIO_HAS_DEDUCED_QUERY_STATIC_CONSTEXPR_TRAIT)
|
992
1002
|
|
1003
|
+
#if !defined(BOOST_ASIO_HAS_DEDUCED_QUERY_MEMBER_TRAIT)
|
1004
|
+
|
1005
|
+
template <typename T, typename Blocking>
|
1006
|
+
struct query_member<
|
1007
|
+
boost::asio::detail::promise_executor<T, Blocking>,
|
1008
|
+
execution::context_t
|
1009
|
+
>
|
1010
|
+
{
|
1011
|
+
BOOST_ASIO_STATIC_CONSTEXPR(bool, is_valid = true);
|
1012
|
+
BOOST_ASIO_STATIC_CONSTEXPR(bool, is_noexcept = true);
|
1013
|
+
typedef boost::asio::system_context& result_type;
|
1014
|
+
};
|
1015
|
+
|
1016
|
+
#endif // !defined(BOOST_ASIO_HAS_DEDUCED_QUERY_MEMBER_TRAIT)
|
1017
|
+
|
993
1018
|
#if !defined(BOOST_ASIO_HAS_DEDUCED_REQUIRE_MEMBER_TRAIT)
|
994
1019
|
|
995
1020
|
template <typename T, typename Blocking>
|
@@ -512,10 +512,21 @@ struct associator<Associator,
|
|
512
512
|
DefaultCandidate>
|
513
513
|
: Associator<WriteHandler, DefaultCandidate>
|
514
514
|
{
|
515
|
-
static typename Associator<WriteHandler, DefaultCandidate>::type
|
516
|
-
|
515
|
+
static typename Associator<WriteHandler, DefaultCandidate>::type
|
516
|
+
get(const detail::write_op<AsyncWriteStream, ConstBufferSequence,
|
517
|
+
ConstBufferIterator, CompletionCondition, WriteHandler>& h)
|
518
|
+
BOOST_ASIO_NOEXCEPT
|
519
|
+
{
|
520
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_);
|
521
|
+
}
|
522
|
+
|
523
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
524
|
+
typename Associator<WriteHandler, DefaultCandidate>::type)
|
525
|
+
get(const detail::write_op<AsyncWriteStream, ConstBufferSequence,
|
517
526
|
ConstBufferIterator, CompletionCondition, WriteHandler>& h,
|
518
|
-
const DefaultCandidate& c
|
527
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
528
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
529
|
+
Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)))
|
519
530
|
{
|
520
531
|
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c);
|
521
532
|
}
|
@@ -758,10 +769,20 @@ struct associator<Associator,
|
|
758
769
|
DefaultCandidate>
|
759
770
|
: Associator<WriteHandler, DefaultCandidate>
|
760
771
|
{
|
761
|
-
static typename Associator<WriteHandler, DefaultCandidate>::type
|
762
|
-
|
772
|
+
static typename Associator<WriteHandler, DefaultCandidate>::type
|
773
|
+
get(const detail::write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1,
|
774
|
+
CompletionCondition, WriteHandler>& h) BOOST_ASIO_NOEXCEPT
|
775
|
+
{
|
776
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_);
|
777
|
+
}
|
778
|
+
|
779
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
780
|
+
typename Associator<WriteHandler, DefaultCandidate>::type)
|
781
|
+
get(const detail::write_dynbuf_v1_op<AsyncWriteStream,
|
763
782
|
DynamicBuffer_v1, CompletionCondition, WriteHandler>& h,
|
764
|
-
const DefaultCandidate& c
|
783
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
784
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
785
|
+
Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)))
|
765
786
|
{
|
766
787
|
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c);
|
767
788
|
}
|
@@ -1055,35 +1076,22 @@ struct associator<Associator,
|
|
1055
1076
|
DefaultCandidate>
|
1056
1077
|
: Associator<WriteHandler, DefaultCandidate>
|
1057
1078
|
{
|
1058
|
-
static typename Associator<WriteHandler, DefaultCandidate>::type
|
1059
|
-
|
1060
|
-
|
1061
|
-
const DefaultCandidate& c = DefaultCandidate()) BOOST_ASIO_NOEXCEPT
|
1079
|
+
static typename Associator<WriteHandler, DefaultCandidate>::type
|
1080
|
+
get(const detail::write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2,
|
1081
|
+
CompletionCondition, WriteHandler>& h) BOOST_ASIO_NOEXCEPT
|
1062
1082
|
{
|
1063
|
-
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_
|
1083
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_);
|
1064
1084
|
}
|
1065
|
-
};
|
1066
|
-
|
1067
|
-
template <typename AsyncWriteStream, typename DynamicBuffer_v2,
|
1068
|
-
typename CompletionCondition, typename WriteHandler,
|
1069
|
-
typename CancellationSlot>
|
1070
|
-
struct associated_cancellation_slot<
|
1071
|
-
detail::write_dynbuf_v2_op<AsyncWriteStream,
|
1072
|
-
DynamicBuffer_v2, CompletionCondition, WriteHandler>,
|
1073
|
-
CancellationSlot>
|
1074
|
-
: detail::associated_cancellation_slot_forwarding_base<
|
1075
|
-
WriteHandler, CancellationSlot>
|
1076
|
-
{
|
1077
|
-
typedef typename associated_cancellation_slot<
|
1078
|
-
WriteHandler, CancellationSlot>::type type;
|
1079
1085
|
|
1080
|
-
static
|
1081
|
-
|
1086
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
1087
|
+
typename Associator<WriteHandler, DefaultCandidate>::type)
|
1088
|
+
get(const detail::write_dynbuf_v2_op<AsyncWriteStream,
|
1082
1089
|
DynamicBuffer_v2, CompletionCondition, WriteHandler>& h,
|
1083
|
-
const
|
1090
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
1091
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
1092
|
+
Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)))
|
1084
1093
|
{
|
1085
|
-
return
|
1086
|
-
CancellationSlot>::get(h.handler_, s);
|
1094
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c);
|
1087
1095
|
}
|
1088
1096
|
};
|
1089
1097
|
|
@@ -392,11 +392,22 @@ struct associator<Associator,
|
|
392
392
|
DefaultCandidate>
|
393
393
|
: Associator<WriteHandler, DefaultCandidate>
|
394
394
|
{
|
395
|
-
static typename Associator<WriteHandler, DefaultCandidate>::type
|
396
|
-
|
395
|
+
static typename Associator<WriteHandler, DefaultCandidate>::type
|
396
|
+
get(const detail::write_at_op<AsyncRandomAccessWriteDevice,
|
397
|
+
ConstBufferSequence, ConstBufferIterator,
|
398
|
+
CompletionCondition, WriteHandler>& h) BOOST_ASIO_NOEXCEPT
|
399
|
+
{
|
400
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_);
|
401
|
+
}
|
402
|
+
|
403
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
404
|
+
typename Associator<WriteHandler, DefaultCandidate>::type)
|
405
|
+
get(const detail::write_at_op<AsyncRandomAccessWriteDevice,
|
397
406
|
ConstBufferSequence, ConstBufferIterator,
|
398
407
|
CompletionCondition, WriteHandler>& h,
|
399
|
-
const DefaultCandidate& c
|
408
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
409
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
410
|
+
Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)))
|
400
411
|
{
|
401
412
|
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c);
|
402
413
|
}
|
@@ -599,9 +610,19 @@ struct associator<Associator,
|
|
599
610
|
DefaultCandidate>
|
600
611
|
: Associator<WriteHandler, DefaultCandidate>
|
601
612
|
{
|
602
|
-
static typename Associator<WriteHandler, DefaultCandidate>::type
|
603
|
-
|
604
|
-
|
613
|
+
static typename Associator<WriteHandler, DefaultCandidate>::type
|
614
|
+
get(const detail::write_at_streambuf_op<Executor, WriteHandler>& h)
|
615
|
+
BOOST_ASIO_NOEXCEPT
|
616
|
+
{
|
617
|
+
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_);
|
618
|
+
}
|
619
|
+
|
620
|
+
static BOOST_ASIO_AUTO_RETURN_TYPE_PREFIX2(
|
621
|
+
typename Associator<WriteHandler, DefaultCandidate>::type)
|
622
|
+
get(const detail::write_at_streambuf_op<Executor, WriteHandler>& h,
|
623
|
+
const DefaultCandidate& c) BOOST_ASIO_NOEXCEPT
|
624
|
+
BOOST_ASIO_AUTO_RETURN_TYPE_SUFFIX((
|
625
|
+
Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)))
|
605
626
|
{
|
606
627
|
return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c);
|
607
628
|
}
|
@@ -1006,20 +1006,7 @@ public:
|
|
1006
1006
|
|| static_cast<const Allocator&>(a) != static_cast<const Allocator&>(b);
|
1007
1007
|
}
|
1008
1008
|
|
1009
|
-
#if !defined(GENERATING_DOCUMENTATION)
|
1010
|
-
private:
|
1011
|
-
friend struct boost_asio_execution_execute_fn::impl;
|
1012
|
-
#endif // !defined(GENERATING_DOCUMENTATION)
|
1013
|
-
|
1014
1009
|
/// Execution function.
|
1015
|
-
/**
|
1016
|
-
* Do not call this function directly. It is intended for use with the
|
1017
|
-
* execution::execute customisation point.
|
1018
|
-
*
|
1019
|
-
* For example:
|
1020
|
-
* @code auto ex = my_io_context.get_executor();
|
1021
|
-
* execution::execute(ex, my_function_object); @endcode
|
1022
|
-
*/
|
1023
1010
|
template <typename Function>
|
1024
1011
|
void execute(BOOST_ASIO_MOVE_ARG(Function) f) const;
|
1025
1012
|
|
@@ -130,7 +130,9 @@ std::string network_v4::to_string(boost::system::error_code& ec) const
|
|
130
130
|
using namespace std; // For sprintf.
|
131
131
|
ec = boost::system::error_code();
|
132
132
|
char prefix_len[16];
|
133
|
-
#if defined(
|
133
|
+
#if defined(BOOST_ASIO_HAS_SNPRINTF)
|
134
|
+
snprintf(prefix_len, sizeof(prefix_len), "/%u", prefix_length_);
|
135
|
+
#elif defined(BOOST_ASIO_HAS_SECURE_RTL)
|
134
136
|
sprintf_s(prefix_len, sizeof(prefix_len), "/%u", prefix_length_);
|
135
137
|
#else // defined(BOOST_ASIO_HAS_SECURE_RTL)
|
136
138
|
sprintf(prefix_len, "/%u", prefix_length_);
|
@@ -99,7 +99,9 @@ std::string network_v6::to_string(boost::system::error_code& ec) const
|
|
99
99
|
using namespace std; // For sprintf.
|
100
100
|
ec = boost::system::error_code();
|
101
101
|
char prefix_len[16];
|
102
|
-
#if defined(
|
102
|
+
#if defined(BOOST_ASIO_HAS_SNPRINTF)
|
103
|
+
snprintf(prefix_len, sizeof(prefix_len), "/%u", prefix_length_);
|
104
|
+
#elif defined(BOOST_ASIO_HAS_SECURE_RTL)
|
103
105
|
sprintf_s(prefix_len, sizeof(prefix_len), "/%u", prefix_length_);
|
104
106
|
#else // defined(BOOST_ASIO_HAS_SECURE_RTL)
|
105
107
|
sprintf(prefix_len, "/%u", prefix_length_);
|
@@ -253,7 +253,7 @@ public:
|
|
253
253
|
#endif // defined(BOOST_ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
|
254
254
|
|
255
255
|
/// Get the executor associated with the object.
|
256
|
-
executor_type get_executor() BOOST_ASIO_NOEXCEPT
|
256
|
+
const executor_type& get_executor() BOOST_ASIO_NOEXCEPT
|
257
257
|
{
|
258
258
|
return impl_.get_executor();
|
259
259
|
}
|
@@ -748,7 +748,7 @@ private:
|
|
748
748
|
{
|
749
749
|
}
|
750
750
|
|
751
|
-
executor_type get_executor() const BOOST_ASIO_NOEXCEPT
|
751
|
+
const executor_type& get_executor() const BOOST_ASIO_NOEXCEPT
|
752
752
|
{
|
753
753
|
return self_->get_executor();
|
754
754
|
}
|