I write WP plugin locally - wordpress.oo.
I have second app app.oo with REST API server.
In wordpress plugin i make api call to my app.
Everything is fine until i try make more than one request at the same moment:
wp_remote_request('/api/auth/login', ['method' => 'POST]);
wp_remote_request(/api/method', ['method' => 'GET'']);
Login works (return json) but second return:
cURL error 28: Operation timed out after 5000 milliseconds with 0 bytes received.
Nginx access log:
127.0.0.1 - - [14/Feb/2019:00:21:37 +0100] "POST /api/auth/login HTTP/1.1" 200 380 "http://app.oo/api/auth/login" "WordPress/5.0.3; http://app.oo"
127.0.0.1 - - [14/Feb/2019:00:21:42 +0100] "GET /api/diary/teams HTTP/1.1" 499 0 "http://app.oo/api/method" "WordPress/5.0.3; http://app.oo"
I tried use api from my production server (also nginx) and works fine.