简体   繁体   中英

Does dot cloud support http long polling

I read that dot cloud supports WebSockets. I am planning to use socket.io in my application. Since socket.io will fall back on long polling if browser does not support websockets, I was wondering whether dot cloud supports http long polling.

PS: I am assuming this will depend on hipache which dot cloud uses now as their HTTP load balancer.

This is definitely something you should test. It is possible that long polling could work, if there is a heartbeat being transmitted more frequently than once per 30 seconds.

I couldn't find a test of socketio longpolling. If you find one in the kit or create one, please link it here.

dotCloud runs Hipache in the default configuration, as published on github . In that configuration, the tcpTimeout is set to 30 seconds, and any socket which does not send or receive data within that window will be closed by Hipache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM