vapor / http

🚀 Non-blocking, event-driven HTTP built on Swift NIO.
MIT License
240 stars 65 forks source link

[HTTP-Pipelining] Test pipelined requests maintain order #321

Open t089 opened 5 years ago

t089 commented 5 years ago

This adds a simple test that asserts that pipelined requests are always responded to in the correct order if supportPipelining: true is set.

t089 commented 5 years ago

I've added a test that triggers the assertion in debug builds even if pipelining is enabled.

https://github.com/vapor/http/blob/939d1f93bcda7ad5295f1c2745d2eb962e63c2d7/Sources/HTTP/Responder/HTTPServer.swift#L150