Limiting upload speed on Java?

后端 未结 3 1740
野的像风
野的像风 2020-12-30 15:59

I\'d like to programmatically limit an upload or download operation in Java. I would assume that all I\'d need to do was do check how fast the upload is going and insert

3条回答
  •  误落风尘
    2020-12-30 16:11

    You'll need some way for isHittingLimit to know how many bytes have been transmitted over how long. There's an interesting approach in this thread that you may be able to adapt.

提交回复
热议问题