仿真器中的慢速网络仿真不适用于localhost

时间:2018-07-04 10:28:31

标签: android android-emulator

我已在所有地方将Android模拟器中的网络速度配置为2G:在初始AVD配置中,在使用UI的运行模拟器中,在Android设置中通过选择2G作为首选网络,在命令行network speed 0.1 0.1上。模拟器显示用于网络的G图标。这是正在运行的仿真器的控制台输出:

network status
Current network status:
  download speed:        100 bits/s (0.0 KB/s)
  upload speed:          100 bits/s (0.0 KB/s)
  minimum latency:  150 ms
  maximum latency:  550 ms
OK

因此,我很确定它的配置速度很慢。尽管如此,仿真器仍以全网速调用运行在localhost上的服务器。正确调慢了对外部主机的呼叫。

调用localhost时忽略仿真器网络设置是一个错误还是一项功能?有没有办法减慢对localhost的呼叫?

0 个答案:

没有答案