Method: HTTPClient::Session#close
- Defined in:
- lib/httpclient/session.rb
#close ⇒ Object
543 544 545 546 547 548 549 550 |
# File 'lib/httpclient/session.rb', line 543 def close if !@socket.nil? and !@socket.closed? # @socket.flush may block when it the socket is already closed by # foreign host and the client runs under MT-condition. @socket.close end @state = :INIT end |