Commit 759b976
committed
Resubscribe on Token Expiration
Before the recent rebase onto modern versions of Reactor Netty ([#984]), when
the Client received a 401 Unauthorized, it would invalidated any existing
token and then resubscribe with the same request causing a new token to be
negotiated the request to be retried, transparently to the user.
During the rebase, this functionality was lost (an easy mistake to make given
that there are no tests for it...) resulting in invalidation of the token, but
no re-subscription and therefore the failure was exposed to the user.
This change re-introduced the previous re-subscribe behavior.
Signed-off-by: Ben Hale <[email protected]>1 parent ee77cf5 commit 759b976
File tree
2 files changed
+21
-15
lines changed- .idea
- cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/util
2 files changed
+21
-15
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
| 175 | + | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
| |||
0 commit comments