ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.68k stars 187 forks source link

Occasional delay in some requests #1527

Open tswilik opened 1 year ago

tswilik commented 1 year ago

Enviroment - MacBook Air M1 / macOS 12.6.1 / Proxyman 4.2.0

I'm using Proxyman as MITM proxy to catch requests from remote device (iPhone XS / iOS 16.3 for example) - I launch my app > see requests that it's making to servers - all good.

However, lately I've noticed weird delays in some of the requests - when it's time for an app to make a request - nothing is shown in Proxyman and it only starts / appears in Proxyman after ~50-60 seconds - as if there is some internal timeout before allowing the request to come through. It doesn't happen 100% of a time, but regularly enough to become a problem.

I'm not entirely sure what's at fault here, but I couldn't replicate the problem without Proxyman, so. I'm not using any network condition rules, Proxy Helper Tool (1.4.0) is installed, no custom DNS in network settings. If there is any additional info needed - I'll be happy to help.

NghiaTranUIT commented 1 year ago

Hi, Thanks for reaching out.

I have some questions to investigate it:

  1. Does it happen when you test your iOS app on iOS Simulator? Or does it only happens on iPhone device?
  2. If you use iOS device -> Setting app -> Wifi -> DNS -> Can you set 1.1.1.1 (Google DNS).
  3. Does the timeout requests are the same URL, or it happens with a different URL?

Maybe there is a bug somewhere in Proxyman, I'm not sure, but I'd like to investigate it 👍

tswilik commented 1 year ago

Unfortunately can't build for iOS Simulator at the moment, as for the other 2 questions -

  1. Setting DNS to 1.1.1.1 doesn't seem to help - problem still reproducible. Tried both ways - setting 1.1.1.1 on Mac and on iPhone.
  2. Delays/timeouts happen with different URLs (and for different hosts)

FWIW I've also experienced (although not as often) something similar to https://github.com/ProxymanApp/Proxyman/issues/1503 - when the whole internet connection seems to stop working via Proxyman - not sure if those issues are connected.

NghiaTranUIT commented 1 year ago

Yes, it can be related, but I could not find a way to reproduce it. Do you have an iOS app on Appstore?, I'd like to download, playground and see if I can reproduce it 🤔

tswilik commented 1 year ago

Tried with iOS Proxyman app for a bit - so far I couldn't reproduce the problem - worked fine.