summaryrefslogtreecommitdiff
path: root/src/mongo/transport/transport_layer_asio_integration_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-30711: scope_guard rewrite, to avoid -Werror=noexcept-typeBilly Donahue2019-01-111-3/+3
| | | | | | | | Macro ON_BLOCK_EXIT(...) now takes a single callable, Some renames: Dismias -> dismiss MakeGuard => makeGuard
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-35679 General Interruption FacilityJason Carey2018-09-171-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for a generalized interruptibility facility in the server. This offers a generalized interruptibility facility, trialed in Future<T> and ProducerConsumerQueue<T>. It offers 3 major concepts: Notifyable: A type which can notified off-thread, causing a wake up from some kind of blocking wait Waitable: A type which is Notifyable, and also can perform work while in a ready-to-receive notification state. static methods offer support for running underneath condition_variable::wait's. The chief implementer is the transport layer baton type Interruptible: A type which can wait on condition variables, and offers: - deadlines. This means the type integrates some sort of clock source - interruptibility. This means the type offers a way of noticing that it should no longer run via status or exception Additionally, Interruptible's offer special scoped guards which offer - Exemption from interruption in a region defined by the lifetime of a guard object - Subsidiary deadlines which can trigger recursively, offering specialized timeout and status return support. The series of virtual types allows us to slice the interface between opCtx and future such that opctx can use future and future can use opctx. Additionally, cutting out more functionality allows us to flow a noop interruptibility type which unifies our waiting behind a common api.
* SERVER-35494 Add timeouts to TransportLayer::asyncConnectJonathan Reams2018-06-111-2/+24
|
* SERVER-34506 TLASIO test for isJustForContinuationJason Carey2018-05-041-0/+58
| | | | | | | | | | | | Adding an integration test for transport layer asio which uses a fail point to induce single byte at a time reads and writes. We use this, along with a debug block in the future header, to ensure that the continuation folding in futures is working properly with opportunisticRead/Write chaining. To test the other side of this, adding a new test command called "echo" which returns the command object passed to it (to allow for a large message body on the read and write path more easily).
* SERVER-33843 Make sure TransportLayerASIO handles HTTP GET requests correctlyJonathan Reams2018-03-071-0/+81