74859ff3c0
This patch removes the porter tool which hands out free ports from a given range with a library which does the same thing. The challenge for acquiring free ports in concurrent go test runs is that go packages are tested concurrently and run in separate processes. There has to be some inter-process synchronization in preventing processes allocating the same ports. freeport allocates blocks of ports from a range expected to be not in heavy use and implements a system-wide mutex by binding to the first port of that block for the lifetime of the application. Ports are then provided sequentially from that block and are tested on localhost before being returned as available. |
||
---|---|---|
.. | ||
prepared_query | ||
state | ||
acl.go | ||
acl_endpoint.go | ||
acl_endpoint_test.go | ||
acl_replication.go | ||
acl_replication_test.go | ||
acl_test.go | ||
autopilot.go | ||
autopilot_test.go | ||
catalog_endpoint.go | ||
catalog_endpoint_test.go | ||
client.go | ||
client_serf.go | ||
client_test.go | ||
config.go | ||
coordinate_endpoint.go | ||
coordinate_endpoint_test.go | ||
filter.go | ||
filter_test.go | ||
flood.go | ||
fsm.go | ||
fsm_test.go | ||
health_endpoint.go | ||
health_endpoint_test.go | ||
helper_test.go | ||
internal_endpoint.go | ||
internal_endpoint_test.go | ||
issue_test.go | ||
kvs_endpoint.go | ||
kvs_endpoint_test.go | ||
leader.go | ||
leader_test.go | ||
merge.go | ||
merge_test.go | ||
operator_autopilot_endpoint.go | ||
operator_autopilot_endpoint_test.go | ||
operator_endpoint.go | ||
operator_raft_endpoint.go | ||
operator_raft_endpoint_test.go | ||
prepared_query_endpoint.go | ||
prepared_query_endpoint_test.go | ||
raft_rpc.go | ||
rpc.go | ||
rpc_test.go | ||
rtt.go | ||
rtt_test.go | ||
segment_stub.go | ||
serf_test.go | ||
server.go | ||
server_lookup.go | ||
server_lookup_test.go | ||
server_serf.go | ||
server_test.go | ||
session_endpoint.go | ||
session_endpoint_test.go | ||
session_timers.go | ||
session_timers_test.go | ||
session_ttl.go | ||
session_ttl_test.go | ||
snapshot_endpoint.go | ||
snapshot_endpoint_test.go | ||
stats_fetcher.go | ||
stats_fetcher_test.go | ||
status_endpoint.go | ||
status_endpoint_test.go | ||
txn_endpoint.go | ||
txn_endpoint_test.go | ||
util.go | ||
util_test.go |