|
|
@@ -99,6 +99,9 @@ func (p *syncthingProcess) stop() {
|
|
|
func (p *syncthingProcess) get(path string) (*http.Response, error) {
|
|
|
client := &http.Client{
|
|
|
Timeout: 2 * time.Second,
|
|
|
+ Transport: &http.Transport{
|
|
|
+ DisableKeepAlives: true,
|
|
|
+ },
|
|
|
}
|
|
|
req, err := http.NewRequest("GET", fmt.Sprintf("http://127.0.0.1:%d%s", p.port, path), nil)
|
|
|
if err != nil {
|