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.
118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/dalli/protocol/base.rb', line 118 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 |