[GH-ISSUE #278] Slow response (API calls) when operating through VPN #201

Open
opened 2026-02-28 14:31:19 +03:00 by kerem · 4 comments
Owner

Originally created by @jacksongoode on GitHub (Feb 7, 2022).
Original GitHub issue: https://github.com/jpochyla/psst/issues/278

When using a VPN (in my case Mullvad on Fedora 35), Psst is considerably slower in requests and the UI blocks as a result. In my tests, I don't latency could really be a factor here as I only go from ~9ms to ~20ms with VPN off to on. I'm not sure what the hang could be - perhaps it's at Spotify's end? - But definitely something to note?

Originally created by @jacksongoode on GitHub (Feb 7, 2022). Original GitHub issue: https://github.com/jpochyla/psst/issues/278 When using a VPN (in my case Mullvad on Fedora 35), Psst is considerably slower in requests and the UI blocks as a result. In my tests, I don't latency could really be a factor here as I only go from ~9ms to ~20ms with VPN off to on. I'm not sure what the hang could be - perhaps it's at Spotify's end? - But definitely something to note?
Author
Owner

@kingosticks commented on GitHub (Feb 7, 2022):

Are you saying that using psst while connected to your VPN is slower than using the official client while connected to your VPN? Or that using psst while connected to your VPN is closer than using psst while not using your VPN? It's always going to be slower through a VPN, seemingly twice as slow by your measurement - which sounds reasonable. You are, after all, forcibly sending your traffic the wrong way. How are you measuring the latency to Spotify's servers?

<!-- gh-comment-id:1031250522 --> @kingosticks commented on GitHub (Feb 7, 2022): Are you saying that using psst while connected to your VPN is slower than using the official client while connected to your VPN? Or that using psst while connected to your VPN is closer than using psst while not using your VPN? It's always going to be slower through a VPN, seemingly twice as slow by your measurement - which sounds reasonable. You are, after all, forcibly sending your traffic the wrong way. How are you measuring the latency to Spotify's servers?
Author
Owner

@jacksongoode commented on GitHub (Feb 7, 2022):

Are you saying that using psst while connected to your VPN is slower than using the official client while connected to your VPN? Or that using psst while connected to your VPN is closer than using psst while not using your VPN? It's always going to be slower through a VPN, seemingly twice as slow by your measurement - which sounds reasonable. You are, after all, forcibly sending your traffic the wrong way.

Yes, it makes sense that there would be some delay in requests - but it really should only be subtle, I can't imagine it would exceed 100ms right? The tested VPN location is within 50km of my location. However, the response time delay increase is in the factor of 4 or 5 times longer. This, to me, seems like either Spotify isn't happy with the request origin (the VPN IP?) or there's some hang up within Psst.

How are you measuring the latency to Spotify's servers?

Pinging spotify.com

<!-- gh-comment-id:1031660272 --> @jacksongoode commented on GitHub (Feb 7, 2022): > Are you saying that using psst while connected to your VPN is slower than using the official client while connected to your VPN? Or that using psst while connected to your VPN is closer than using psst while not using your VPN? It's always going to be slower through a VPN, seemingly twice as slow by your measurement - which sounds reasonable. You are, after all, forcibly sending your traffic the wrong way. Yes, it makes sense that there would be some delay in requests - but it really should only be subtle, I can't imagine it would exceed 100ms right? The tested VPN location is within 50km of my location. However, the response time delay increase is in the factor of 4 or 5 times longer. This, to me, seems like either Spotify isn't happy with the request origin (the VPN IP?) or there's some hang up within Psst. > How are you measuring the latency to Spotify's servers? Pinging `spotify.com`
Author
Owner

@jpochyla commented on GitHub (Mar 12, 2022):

That's, uhh... strange? No idea where to look at the moment :|

<!-- gh-comment-id:1065977422 --> @jpochyla commented on GitHub (Mar 12, 2022): That's, uhh... strange? No idea where to look at the moment :|
Author
Owner

@kingosticks commented on GitHub (Mar 13, 2022):

@jacksongoode can you provide which access point is being used in both instances. Psst logs a trace message with this info.

<!-- gh-comment-id:1066073483 --> @kingosticks commented on GitHub (Mar 13, 2022): @jacksongoode can you provide which access point is being used in both instances. Psst logs a trace message with this info.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#201
No description provided.