Commit c366dda
committed
Avoid duplicate RSocket endpoint for WebSocket
Prior to this commit, choosing a "websocket" transport for your RSocket
endpoint with `spring.rsocket.server.port` would not only expose the
endpoint on that specific port, but also on the main server.
This commit refines the auto-configuration condition to only add a route
on the main server if the separate port is not chosen.
Fixes gh-495921 parent 722408a commit c366dda
File tree
2 files changed
+12
-1
lines changed- spring-boot-project/spring-boot-autoconfigure/src
- main/java/org/springframework/boot/autoconfigure/rsocket
- test/java/org/springframework/boot/autoconfigure/rsocket
2 files changed
+12
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
87 | 98 | | |
88 | 99 | | |
89 | 100 | | |
| |||
0 commit comments