Method: DRb::DRbTCPSocket#close

Defined in:
lib/drb/drb.rb

#closeObject

Close the connection.

If this is an instance returned by #open_server, then this stops listening for new connections altogether. If this is an instance returned by #open or by #accept, then it closes this particular client-server session.



953
954
955
956
957
958
959
960
# File 'lib/drb/drb.rb', line 953

def close
  shutdown
  if @socket
    @socket.close
    @socket = nil
  end
  close_shutdown_pipe
end