Commonjava / indy

Simple artifact proxy for maven and similar build tools
Apache License 2.0
33 stars 30 forks source link

Add flush after copy during downloads #2460

Open sswguo opened 2 months ago

sswguo commented 2 months ago

Trying to fix MMENG-4207 Inconsistent large downloads

Adding the flush ensures that all the data is sent to the client after the copy is complete. Without an explicit flush(), some data might remain in the buffer and not be sent until it's full.