504 and 502 errors

A Alexey Mironov 3 years 6 months ago
129 1 0

Hello,
Our clients have an Rhomobile and Rho Connect App's.
At last time offen we seen an 504 error on mobile device log. I read about it and we change time out Nginx variables :

    proxy_connect_timeout 30;
    proxy_send_timeout    30;
    proxy_read_timeout 30;

to

    proxy_connect_timeout 180;
    proxy_send_timeout    180;
    proxy_read_timeout 180;

After then we have offen to get 502 error....
We have 20 mobile devices (sync freq.1-2 sync by 30 min).
Sync server - HP 4 CPU 4GB RAM (RedHat 6.5)

Sync protocol is HTTPS with SSL one side server side encrypting...

Coud some body recomend me what can I do?

Please Register or Login to post a reply

1 Replies

J Jon Tara

Many mobile networks will not permit a connection to go idle for that long.

30 seconds I think is a safe number - I believe this is what Verizon uses, and I think they have the shortest timeout.

I would investigate why your server is taking so long to respond. It seems unreasonable.

CONTACT
Can’t find what you’re looking for?