summaryrefslogtreecommitdiff
path: root/src/mongo/executor/network_interface_asio.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-24104 Replace stdx::duration with mongo::Duration.Andy Schwerin2016-05-171-1/+1
| | | | | | | The mongo::Duration type does overflow checking on casts and arithmetic. This patch also moves DESTRUCTOR_GUARD out of assert_util.h into destructor_guard.h in order to break an include cycle with duration.h.
* SERVER-23548 Remove VS2013 workaroundsMark Benvenuto2016-05-031-18/+0
|
* SERVER-21170 NetworkInterface::startCommand should be able to reject ↵Waley Chen2016-04-041-4/+15
| | | | requests due to shutdown
* Revert "SERVER-21170 NetworkInterface::startCommand should be able to reject ↵Waley Chen2016-04-011-15/+4
| | | | | | requests due to shutdown" This reverts commit dfabadb09387a4236ee7675cd02d39b17affaf39.
* SERVER-21170 NetworkInterface::startCommand should be able to reject ↵Waley Chen2016-03-301-4/+15
| | | | requests due to shutdown
* SERVER-23199 switch setAlarm to use system clockMatt Cotter2016-03-281-4/+3
|
* SERVER-21775 NetworkInterface should make stats available to callersWaley Chen2016-03-211-7/+35
|
* SERVER-22874 network asio operation embeds literal tabs and newlines into ↵Waley Chen2016-03-171-2/+1
| | | | strings
* SERVER-22710 Fix UB in ASIO timeout durationsJason Carey2016-03-031-1/+4
| | | | | | | | | | std::chrono types can naturally signed integer overflow if you accidentally pass a large duration in lower granularity (std::chrono::milliseconds::max()) to a higher granularity constructor (std::chrono::nanoseconds). We have to clamp our casts to ensure that we don't wrap around to negative values.
* SERVER-22921 Log network interface ASIO responsesKaloian Manassiev2016-03-021-2/+0
| | | | Adds logging of the network inteface ASIO responses at log level 2.
* SERVER-22855 Check access id before calling op->toString()samantharitter2016-02-251-11/+13
|
* SERVER-22427 add logging for 'Operation timed out' errorsEsha Maharishi2016-02-241-8/+10
|
* SERVER-22433 Add more detailed logging to NetworkInterfaceASIOsamantharitter2016-02-181-16/+66
|
* SERVER-21597 Fix connPoolStats to work with many NetworkInterfacessamantharitter2015-12-141-2/+3
|
* SERVER-21854 Add request id to RemoteCommandRequestKaloian Manassiev2015-12-111-23/+28
| | | | | | | Having identifier associated with each request allows us to trace requests throughout the ASIO network threads. This change doesn't fix the bug, but makes investigation easier.
* SERVER-21640 fix race in getting size of _serviceRunners in NetworkInterfaceASIOAdam Midvidy2015-11-241-17/+15
|
* SERVER-21458 thread request timeout in to ConnectionPool::get in ↵Adam Midvidy2015-11-191-9/+24
| | | | NetworkInterfaceASIO
* SERVER-21490 give all NetworkInterfaceASIO threads a unique nameAdam Midvidy2015-11-181-1/+4
|
* SERVER-21436 NetworkInterfaceThreadPool for shardingJason Carey2015-11-171-0/+7
| | | | | | | | | | | | | Adding a new kind of thread pool that dispatches jobs onto a provided NetworkInterface rather than using their own thread pool. We're also switching the ThreadPoolTaskExecutor to use this instead of the regular thread pool for sharding. That, in turn, removes context switches by allowing inline execution of scheduled tasks if they're invoked from a nia io_worker. In pursuit of this, factored the connection pool tests out into a common set that the NetworkInterfaceThreadPool can use.
* SERVER-20143 Strand NetworkInterfaceASIOJason Carey2015-11-091-72/+85
| | | | | | | Add strands (and an option for multiple io workers) in NetworkInterfaceASIO. strands are an asio specific mechanism for ensuring thread safety.
* SERVER-20546 Abort if connections are returned to connection pool in an ↵samantharitter2015-11-041-0/+6
| | | | unknown state
* SERVER-20283 Update connPoolStats command to include multiple connection poolssamantharitter2015-10-131-0/+4
|
* SERVER-20752 improve NetworkInterfaceASIO loggingAdam Midvidy2015-10-121-1/+9
| | | | | | | | | - add a log component for ASIO, make it a subcomponent of Network - add additional LOG(2), and LOG(3) messages for tracing - remove a few redundant log messages A previous version of this patch had a bug where we could access the state of a freed AsyncOp.
* Revert "SERVER-20752 improve NetworkInterfaceASIO logging"Adam Midvidy2015-10-091-9/+1
| | | | This reverts commit 8e2cc8cc18a841d36fe4827cafd3572dc3f11506.
* SERVER-20752 improve NetworkInterfaceASIO loggingAdam Midvidy2015-10-091-1/+9
| | | | | | - add a log component for ASIO, make it a subcomponent of Network - add additional LOG(2), and LOG(3) messages for tracing - remove a few redundant log messages
* SERVER-20220 name the ASIO threadAdam Midvidy2015-10-071-0/+2
|
* SERVER-20689 onFinish should be set when ConnectionPool refreshes a connectionAdam Midvidy2015-10-021-0/+1
|
* SERVER-20689 improve diagnostics in the case that we leak an exception from ↵Adam Midvidy2015-10-021-2/+8
| | | | an IO worker thread
* SERVER-20544 prioritize reporting cancellation over reporting network error ↵Adam Midvidy2015-09-281-2/+5
| | | | if we were canceled before we failed to get a connection from the pool
* SERVER-20556 bump the generation count of AsyncOp after removing it from ↵Adam Midvidy2015-09-221-0/+4
| | | | _inProgress
* SERVER-20419 Use constant time lookup to cancel operations waiting for a ↵Andrew Morrow2015-09-181-20/+24
| | | | connection
* SERVER-19438 make ASIO timeouts less chattyAdam Midvidy2015-09-181-1/+1
|
* SERVER-20465 Control AsyncOp access amongst threads and callbackssamantharitter2015-09-181-5/+20
|
* SERVER-19342 extend NIA with metadata hooksAdam Midvidy2015-09-171-12/+13
|
* SERVER-19438 Honor operation timeouts in NetworkInterfaceASIOSamantha Ritter2015-09-171-0/+19
|
* SERVER-19438 Add the ability to mock timers underneath NetworkInterfaceASIOSamantha Ritter2015-09-171-0/+16
|
* SERVER-20190 add signalWorkAvailable to new exit point in startCommandAdam Midvidy2015-09-161-1/+3
|
* SERVER-20190 cancelCommand() preempts outstanding network events in ↵Samantha Ritter2015-09-151-6/+19
| | | | | | NetworkInterfaceASIO Signed-off-by: Adam Midvidy <amidvidy@gmail.com>
* SERVER-19769 Fixups for Connection PoolingJason Carey2015-09-091-4/+5
| | | | Various fixes for connection pooling
* SERVER-20187 added cancelAllCommands to ASIO network interfaceBenety Goh2015-09-021-0/+7
| | | | Not implemented for NetworkInterfaceImpl or NetworkInterfaceMock
* SERVER-19769 Pool connections in NetworkInterfaceASIOJason Carey2015-09-011-11/+62
|
* SERVER-19275 downconvert find/getMore in NetworkInterfaceASIOAdam Midvidy2015-09-011-1/+1
|
* SERVER-19420 implement connection hook API in NetworkInterfaceASIOAdam Midvidy2015-08-181-0/+6
|
* SERVER-19359 implement setAlarm() for NetworkInterfaceASIOsamantharitter2015-08-141-1/+13
|
* SERVER-19343 add unit testing infrastructure for NetworkInterfaceASIOAdam Midvidy2015-08-071-17/+9
| | | | | | | - streams are now created through a factory - implement SSL stream factory and plaintext stream factory - implement a mock stream abstraction - added a very basic unit test of NetworkInterfaceASIO
* SERVER-19587 remove DBClientConnection bootstrap from NetworkInterfaceASIOAdam Midvidy2015-08-021-2/+0
|
* SERVER-19439 implement ConnectionHook API in NetworkInterfaceImplAdam Midvidy2015-07-311-4/+0
|
* SERVER-19420 add ConnectionHook interface to NetworkInterface, and add stubsAdam Midvidy2015-07-231-0/+4
|
* SERVER-19221 implement async SSL in NetworkInterfaceASIOAdam Midvidy2015-07-221-0/+15
|
* Revert "SERVER-19221 implement async SSL in NetworkInterfaceASIO"Adam Midvidy2015-07-221-15/+0
| | | | This reverts commit 917290ba9644cbf6d981bc730444a107248d1aa3.