Commit ef061fd
committed
Resolve the transcoding head promise when a unary call ends without a message.
Motivation:
Transcoding defers the HTTP head until the response body is known, so writeHead returns a
promise resolved by writeUnaryMessage. A unary call that ends without ever writing a message
never resolves it and leaves the caller waiting.
Changes:
Resolve the head promise from writeEnd when it is still pending.
Fix the indentation of the SSE branch.1 parent 8f08bda commit ef061fd
1 file changed
Lines changed: 14 additions & 4 deletions
File tree
- vertx-grpc-transcoding/src/main/java/io/vertx/grpc/transcoding/impl
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | | - | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
189 | 199 | | |
190 | 200 | | |
0 commit comments