Method: Dalli::Protocol::Base#pipeline_abort
- Defined in:
- lib/dalli/protocol/base.rb
#pipeline_abort ⇒ Object
Abort current pipelined get. Generally used to signal an external timeout during pipelined get. The underlying socket is disconnected, and the exception is swallowed.
Returns nothing.
112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/dalli/protocol/base.rb', line 112 def pipeline_abort response_buffer.clear @connection_manager.abort_request! return true unless connected? # Closes the connection, which ensures that our connection # is in a clean state for future requests @connection_manager.error_on_request!('External timeout') rescue NetworkError true end |