-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Issue description
When i make a request to apisix to proxy forward to a websocket backend, i get 504 error.
But i make a request direct to backend by ip address an port ,it is ok.
Apisix route setting:
{
"uri": "/esb/*",
"name": "esb-ws",
"methods": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"HEAD",
"OPTIONS",
"CONNECT",
"TRACE"
],
"host": "wsocser2.platformcenter.net",
"plugins": {
"proxy-rewrite": {
"regex_uri": [
"/esb/(.*)",
"/$1"
]
}
},
"upstream": {
"nodes": [
{
"host": "192.168.3.65",
"port": 12345,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"enable_websocket": true,
"status": 1
}Environment
- apisix version: 2.10.0
- OS: 3.10.0-1160.36.2.el7.x86_64
- OpenResty / Nginx version: use with docker apisix:2.10.0-alpine
- etcd version: 3.4.15
- apisix-dashboard version: 2.9.0
Metadata
Metadata
Assignees
Labels
No labels