netty5/handler
Saranya Krishnakumar 391cdcdd77 Add check for DefaultFileRegion to calculate size of msg in AbstractTrafficShapingHandler (#10215)
Motivation:

Currently calculateSize method in AbstractTrafficShapingHandler calculates size for object of type ByteBuf or ByteBufHolder. Adding a check for FileRegion, makes it possible to do traffic shaping for FileRegion objects as well

Modification:

Check if object to be sent is of type FileRegion, if yes calculate the size using its count() method.

Co-authored-by: Dinesh Joshi <dinesh.joshi@apple.com>
2020-04-27 14:50:09 +02:00
..
src Add check for DefaultFileRegion to calculate size of msg in AbstractTrafficShapingHandler (#10215) 2020-04-27 14:50:09 +02:00
pom.xml Add ResolveAddressHandler which can be used to resolve addresses on the fly (#9947) 2020-01-20 19:34:09 +01:00