vertx-http-proxy icon indicating copy to clipboard operation
vertx-http-proxy copied to clipboard

Interceptors are not applied for websocket upgrades

Open fbuetler opened this issue 2 years ago • 0 comments

Version

4.3.8

Context

I investigated an issue, where websocket upgrades were failing. We have a service handling websockets living behind the vertx-http-proxy. This service is living on a different root path, than the vertx-http-proxy is exposing. Hence a path prefix is removed in the vertx-http-proxy with the help of a ProxyInterceptor. This works for normal http requests.

However, it turns out the ProxyInterceptors are not applied for websocket upgrades as websocket upgrades are handled and returned before the interceptors are applied.

This behaviour results in the path prefix not being removed and the service running behind the proxy returning a 404 for the websocket upgrade.

fbuetler avatar May 11 '23 14:05 fbuetler