hep-gc / shoal

A squid cache publishing and advertising tool designed to work in fast changing environments
Apache License 2.0
4 stars 8 forks source link

-n option seems to be ignored #138

Closed rptaylor closed 6 years ago

rptaylor commented 6 years ago

The -n option doesn't seem to do anything:

[root@cc-west-hep-4361bafc-387f-4b15-a7fb-5c744a980fff ~]# shoal-client -n 2 -d
"http://kraken01.westgrid.ca:3128;http://atlascaq3.triumf.ca:3128;http://atlascaq4.triumf.ca:3128;http://192.168.0.32:3128;http://206.167.181.94:3128;http://kraken01.westgrid.ca:3128;http://cernvm-webfs.atlas-canada.ca:3128;DIRECT"
[root@cc-west-hep-4361bafc-387f-4b15-a7fb-5c744a980fff ~]# shoal-client -n 1 -d
"http://kraken01.westgrid.ca:3128;http://atlascaq3.triumf.ca:3128;http://atlascaq4.triumf.ca:3128;http://192.168.0.32:3128;http://206.167.181.94:3128;http://kraken01.westgrid.ca:3128;http://cernvm-webfs.atlas-canada.ca:3128;DIRECT"
[root@cc-west-hep-4361bafc-387f-4b15-a7fb-5c744a980fff ~]# shoal-client -n 3 -d
"http://kraken01.westgrid.ca:3128;http://atlascaq3.triumf.ca:3128;http://atlascaq4.triumf.ca:3128;http://192.168.0.32:3128;http://206.167.181.94:3128;http://kraken01.westgrid.ca:3128;http://cernvm-webfs.atlas-canada.ca:3128;DIRECT"
[root@cc-west-hep-4361bafc-387f-4b15-a7fb-5c744a980fff ~]# shoal-client -n 5 -d
"http://kraken01.westgrid.ca:3128;http://atlascaq3.triumf.ca:3128;http://atlascaq4.triumf.ca:3128;http://192.168.0.32:3128;http://206.167.181.94:3128;http://kraken01.westgrid.ca:3128;http://cernvm-webfs.atlas-canada.ca:3128;DIRECT"
colsond commented 6 years ago

It looks like this bug was introduced in commit 7cf6162bc along with the cvmfs talk changes- it is a simple fix.