EionRobb / pidgin-opensteamworks

Steam plugin for Pidgin/libpurple
153 stars 5 forks source link

Reconnecting every few minutes #125

Closed ChristophHaag closed 8 years ago

ChristophHaag commented 8 years ago

Happens every 5-15 minutes.

In the debug window I don't see much of a reason, just

(23:16:30) steam: getting url /ISteamWebUserPresenceOAuth/Poll/v0001
(23:16:30) dnsquery: Performing DNS lookup for api.steampowered.com
(23:16:30) dns: Wait for DNS child 26232 failed: Keine Kind-Prozesse
(23:16:30) dns: Created new DNS child 26294, there are now 1 children.
(23:16:30) dns: Successfully sent DNS request to child 26294
(23:16:30) dns: Got response for 'api.steampowered.com'
(23:16:30) dnsquery: IP resolved for api.steampowered.com
(23:16:30) proxy: Attempting connection to 104.92.88.160
(23:16:30) proxy: Connecting to api.steampowered.com:443 with no proxy
(23:16:30) proxy: Connection in progress
(23:16:30) proxy: Connecting to api.steampowered.com:443.
(23:16:30) proxy: Connected to api.steampowered.com:443.
(23:16:30) nss: SSL version 3.3 using 128-bit AES-GCM with 128-bit AEAD MAC
Server Auth: 2048-bit RSA, Key Exchange: 256-bit ECDHE, Compression: NULL
Cipher Suite Name: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(23:16:30) nss: subject=CN=store.steampowered.com,O=Valve Corp.,L=Bellevue,ST=Washington,C=US,postalCode=98004,STREET=10900 NE 4th St,STREET=Suite 500,serialNumber=602290773,incorporationState=Washington,incorporationCountry=US,businessCategory=Private Organization issuer=CN=DigiCert SHA2 Extended Validation Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
(23:16:30) nss: partial certificate chain
(23:16:30) certificate/x509/tls_cached: Starting verify for api.steampowered.com
(23:16:30) certificate/x509/tls_cached: Checking for cached cert...
(23:16:30) certificate/x509/tls_cached: ...Found cached cert
(23:16:30) nss/x509: Loading certificate from /home/chris/.purple/certificates/x509/tls_peers/api.steampowered.com
(23:16:30) certificate/x509/tls_cached: Peer cert matched cached
(23:16:30) nss/x509: Exporting certificate to /home/chris/.purple/certificates/x509/tls_peers/api.steampowered.com
(23:16:30) util: Writing file /home/chris/.purple/certificates/x509/tls_peers/api.steampowered.com
(23:16:30) nss: Trusting CN=store.steampowered.com,O=Valve Corp.,L=Bellevue,ST=Washington,C=US,postalCode=98004,STREET=10900 NE 4th St,STREET=Suite 500,serialNumber=602290773,incorporationState=Washington,incorporationCountry=US,businessCategory=Private Organization
(23:16:30) certificate: Successfully verified certificate for api.steampowered.com
(23:16:30) steam: post_or_get_ssl_connect_cb
(23:16:30) steam: executing callback for /ISteamWebUserPresenceOAuth/Poll/v0001
(23:16:30) connection: Connection error on 0xcb79a0 (reason: 0 description: Reconnect needed)
(23:16:30) account: Disconnecting account REDACTED (0xeed1d0)
(23:16:30) connection: Disconnecting connection 0xcb79a0
EionRobb commented 8 years ago

Yeah, pretty damn annoying at the moment!

There's a lot of things timing out on the Steam servers, but I think we can handle a disconnection on the Poll stream better than what we are

jgeboski commented 8 years ago

Pretty sure this is the same issue as jgeboski/bitlbee-steam#111.

EionRobb commented 8 years ago

Looked into this some more. There's 3 different things going on with the Steam servers at the moment, either they timeout, return a 500 server error, or tell us that we're not logged in.

It's the last one that causes the "Reconnect needed" to show up in Pidgin, but most of the time it's one of the first two happening that is silently handled in the background.

I'm not sure if there is anything we can do at the moment, other than ride out the mess and wait for the Steam servers to come right

EionRobb commented 8 years ago

Looks like this was caused by a DDoS attack against Steam yesterday and the problem should have gone away now https://www.reddit.com/r/itsaunixsystem/comments/4024pk/steam_user_hacks_valve_with_amplified_ddos_attack/cyqwyz7?context=3

ChristophHaag commented 8 years ago

I too think it's not happening anymore.

CapsAdmin commented 8 years ago

Steamcommunity has always been unstable and slow to me. I've had similar issues when using steam on mobile while at the same time desktop is working.

It's almost as if the mobile api goes through the steamcommunity somehow