mirror of
https://github.com/apple/swift-nio
synced 2026-11-26 04:57:49 +00:00
Motivation: Previously we were not running the (child/server)channelInitializers on the event loop associated to the `Channel` we're initialising. Almost all operations in there are pipeline modifications which are thread safe so it presumably wasn't a massive correctness issue. However it's very expensive to hop threads that often and it is also very unexpected. This addresses this issue. Modifications: made all (child/server)channelInitializers run on the event loop that is associated to their `Channel` Result: - more correctness - less unexpected behaviour
39 lines
997 B
YAML
39 lines
997 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio:14.04-4.1
|
|
build:
|
|
args:
|
|
ubuntu_version : "14.04"
|
|
swift_version : "4.1"
|
|
install_curl_from_source: "true"
|
|
|
|
unit-tests:
|
|
image: swift-nio:14.04-4.1
|
|
|
|
integration-tests:
|
|
image: swift-nio:14.04-4.1
|
|
environment:
|
|
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=47000
|
|
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=718100
|
|
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4600
|
|
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=3100
|
|
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=99100
|
|
|
|
test:
|
|
image: swift-nio:14.04-4.1
|
|
environment:
|
|
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=47000
|
|
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=718100
|
|
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4600
|
|
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=3100
|
|
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=99100
|
|
|
|
echo:
|
|
image: swift-nio:14.04-4.1
|
|
|
|
http:
|
|
image: swift-nio:14.04-4.1
|