forked fromAsyncHttpClient/async-http-client
- Notifications
You must be signed in to change notification settings - Fork0
Commit43cff3a
Update progress during upload large bodies,closeAsyncHttpClient#728
Motivation:`BodyChunkedInput` does not update progress member, it always stays zero.Thus `ProgressAsyncHandler#onContentWriteProgress` receives zeroes in amount and current parameters. Users sees data is being sent but has no information about exact amount of data has been written to channel.Modifications:`BodyChunkedInput` was modified to update progress.`WriteProgressListener` was modified to ignore zero progress. It happens due to non-blocking nature of network writes. We just ignore callbacks when there was no progress at all.Result:Progress is updated each time bytes are phisically written to channel.Callbacks are triggered with actual amount of data written.1 parent79016a7 commit43cff3a
File tree
2 files changed
+4
-1
lines changed- client/src/main/java/org/asynchttpclient/netty/request
- body
2 files changed
+4
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments
Comments
(0)