wadeLouis opened a new issue #5283:
URL: https://github.com/apache/apisix/issues/5283
### 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:
```json
{
"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
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]