You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/17 15:43:23 UTC

[GitHub] [apisix] michaelh1355 opened a new issue, #7478: help request: the Read Timeout of Basic Information in upstream

michaelh1355 opened a new issue, #7478:
URL: https://github.com/apache/apisix/issues/7478

   ### Description
   
   APISIX 的 Upstream配置中这三个参数Connect Timeout、 Send Timeout、Read Timeout  分别配置多少合适? 创建Upstream时默认是6s,当我启用websocket时,发现 Read Timeout 6s会引起client browser报 "websocket closed"
   ![image](https://user-images.githubusercontent.com/90734605/179405852-4dc18b3f-c54b-4d53-ba5e-ff99c1783a6d.png)
   当Read Timeout 增加到17s,client browser恢复正常,"websocket closed" 消失。请问这是什么原因?当使用websocket时如何正确设置Connect Timeout、 Send Timeout、Read Timeout 的大小?
   
   谢谢!
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] tzssangglass commented on issue #7478: help request: the Read Timeout of Basic Information in upstream

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7478:
URL: https://github.com/apache/apisix/issues/7478#issuecomment-1186663098

   ref: https://github.com/apache/apisix/issues/5440#issuecomment-975759572
   
   Make the timeout time greater than the heart rate


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] closed issue #7478: help request: the Read Timeout of Basic Information in upstream

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7478: help request: the  Read Timeout of Basic Information in upstream 
URL: https://github.com/apache/apisix/issues/7478


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] commented on issue #7478: help request: the Read Timeout of Basic Information in upstream

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7478:
URL: https://github.com/apache/apisix/issues/7478#issuecomment-1646548203

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] tokers commented on issue #7478: help request: the Read Timeout of Basic Information in upstream

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7478:
URL: https://github.com/apache/apisix/issues/7478#issuecomment-1186661374

   @michaelh1355 That depends on the data transmission frequency over the WebSocket connection. If you can make sure the upstream will send some WebSocket frames every N seconds, then a read timeout larger than N is OK. Or if you're not sure it, try to use the WebSocket Ping frame, e.g., the upstream will send a Ping to the downstream every X seconds, then set a read timeout > X.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix] github-actions[bot] commented on issue #7478: help request: the Read Timeout of Basic Information in upstream

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7478:
URL: https://github.com/apache/apisix/issues/7478#issuecomment-1625175002

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org