Remove the global variable for connection 75/15475/1
authorOndrej Fabry <ofabry@cisco.com>
Tue, 23 Oct 2018 13:40:44 +0000 (15:40 +0200)
committerOndrej Fabry <ofabry@cisco.com>
Tue, 23 Oct 2018 13:40:44 +0000 (15:40 +0200)
commitfeb7f540dd601aa108167c256bceb84474d38a18
tree2b518a153b0035555fcc32d0159113357628557e
parent6d6ad42ec0942a378c5550ad3472f388d7c85d49
Remove the global variable for connection

- this also fixes issue where after connect failure all following connects
  failed 'with only one connection per process is supported'
- this global was used to limit to single connection, but the actual
  limitation is for the adapter and with different adapter implementation
  multiple connections could actually be supported
- the global defined in the vppapiclient package will continue to limit
  to single connection via VppClient implementation of the adapter

Change-Id: Id06dd6e80b51d1d43f6f75bbcc6e01c6f21c605a
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
core/connection.go
core/request_handler.go