Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

[SOLVED]GET EOF on servers.get #465

Closed
guanglinlv opened this issue Aug 20, 2015 · 2 comments
Closed

[SOLVED]GET EOF on servers.get #465

guanglinlv opened this issue Aug 20, 2015 · 2 comments

Comments

@guanglinlv
Copy link

Hi,

when I use s, err := servers.Get(client, instanceID).Extract() to refresh server status multiple times, i always get the error at the eighth times.

the error message is so puzzled ::)

Get http://xxx:8774/v2/16d0657471124a8da827347ade4630cd/servers/f9b7571a-a92a-417f-845a-eba13f5e6338: EOF

thanks.

@guanglinlv
Copy link
Author

Hi,

I got the reason, it is a bug of golang net/http), golang will try to reuse the connection for http.client.Do as default. but the connection maybe broken by haproxy stats connection of openstack. golang does not fix it currently.a workaround is close the connection immediately when we got the Response. maybe add line req.Close = true before provider_client.go#L181

more details :
golang/go#8946
golang/go#4677

@guanglinlv guanglinlv changed the title What does this error(GET URL EOF) mean? [SOLVED]What does this error(GET URL EOF) mean? Aug 21, 2015
@guanglinlv guanglinlv changed the title [SOLVED]What does this error(GET URL EOF) mean? [SOLVED]GET EOF on servers.get Aug 21, 2015
@jrperritt
Copy link
Contributor

Thank you for filing this. I think a fix has been merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants