-1

I am developing an android application which calls http requests. The rest API is on the same laptop (using wamp). I test the API over post man (Chrome plugin), and I get the right response after ~21s ...The strange thing is, I have received immediate answer when the api was on an other pc and other network.

I didn't change nothing on the wamp config (and I have the same version) or on the code of the rest api. The api was written in Laravel by someone else, and worked fine on the previous laptop/server.

How could I solve this?

4

1 回答 1

0

我刚刚注意到 CMS 的加载速度也很慢。我通过在 laravel/app/config/database.php 中将“localhost”更改为“127.0.0.1”解决了这个问题

于 2014-07-30T15:01:47.503 回答