1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
James Donald
961ad2e0f3 Remove address truncation in debug output on Windows
Summary:
```
quic\api\quicbatchwriter.cpp(286): warning C4311: 'type cast': pointer truncation from 'const uint8_t *' to 'long'
quic\api\quicbatchwriter.cpp(286): warning C4302: 'type cast': truncation from 'const uint8_t *' to 'long'
```
On *nix 64-bit systems a `long` is 64 bits while on Windows/MSVC it's 32-bits. Better just use the 64-bit value for consistency.

Reviewed By: yangchi

Differential Revision: D25496685

fbshipit-source-id: f2357c6b9f4e4ca1a630db95b69a116d0241c744
2020-12-12 02:43:37 -08:00
Yang Chi
a7dc8cb4f7 Log an error when we write a packet larger than limit
Summary: as title

Reviewed By: bschlinker

Differential Revision: D22542572

fbshipit-source-id: 4f53a1c916b22e33f183208efb671c1d0883309c
2020-07-15 11:19:10 -07:00
Dan Melnic
37add01a38 SendmmsgGSOPacketBatchWriter - try to batch more based on dest addr (map)
Summary: SendmmsgGSOPacketBatchWriter - try to batch more based on dest addr (map)

Reviewed By: mjoras

Differential Revision: D21110682

fbshipit-source-id: 1be2eb26ec33c8256f1d4bbe7e3d6fae19eb7146
2020-05-27 16:15:04 -07:00
Yang Chi
9554a67c73 add a check for Quic inplace writer for the remaining buffer size
Summary:
as title. Instead of checking against the packet size limit, this
leaves a 10 bytes room since we have a bug that writes out packets that's
slightly larger than udpSendPacketLen. Most of such packet will be 1-2 bytes
larger than original packets.

Reviewed By: mjoras

Differential Revision: D21642386

fbshipit-source-id: 6ca68d48828cb7f8ee692e0d5f452f5389a56bfd
2020-05-26 12:47:44 -07:00
Yang Chi
7022459fb0 Quic Inplace batch writer checks either packet size limit or next packet size
Summary: as title

Reviewed By: mjoras

Differential Revision: D21429917

fbshipit-source-id: 5be997bfd75cfab89c3d9289a31b0efab69a80fc
2020-05-12 07:04:56 -07:00
Yang Chi
014d50aa41 Quic socket write for the inplace buffer writing
Summary: as title

Reviewed By: mjoras

Differential Revision: D21211414

fbshipit-source-id: 5c4b8a747457e3f21da77541a35da1af1b1ac6e4
2020-05-05 09:53:07 -07:00
Dan Melnic
55443f2b16 Add support for thread local batch writers
Summary: Add support for thread local batch writers

Reviewed By: mjoras

Differential Revision: D21004810

fbshipit-source-id: 907a25f95afeab78fdc7e83cbab87b4f51adc3d3
2020-04-23 18:39:09 -07:00
Dan Melnic
6c72a05cd5 Let AsyncUDPSocket send to multiple addresses
Summary:
Add support for variable number of addrs so we can send data to multiple destinations.

(Note: this ignores all push blocking failures!)

Reviewed By: kevin-vigor

Differential Revision: D21032857

fbshipit-source-id: f73b98d44f5d7d92f3692dfddb9b1c76ebcc51c5
2020-04-23 10:51:04 -07:00
Dan Melnic
655fef6a95 Add SendmmsgGSOPacketBatchWriter
Summary: Add SendmmsgGSOPacketBatchWriter

Reviewed By: mjoras

Differential Revision: D19529123

fbshipit-source-id: 15d2e591f91574bae0e33fd92094c24482246ee7
2020-01-28 12:44:46 -08:00
Yang Chi
a1b86e660d Rename Quic batching num to batch size
Summary: batchingNum -> batchSize

Reviewed By: mjoras

Differential Revision: D15740004

fbshipit-source-id: 2e3ba33792248ad67e3b06da0a95dc9ff8e76892
2019-06-11 07:28:34 -07:00
Yang Chi
577aff9290 use folly::assume_unreachable for unreachable code
Summary:
In the client transport case, an exception is thrown before return. In
the batch write maker case, the previous switch/case handles all possible cases

Reviewed By: udippant

Differential Revision: D15260725

fbshipit-source-id: 2ce7277544ee810729140aeb304e6484d339f3db
2019-05-08 10:40:24 -07:00
udippant
50d4939e9e Initial commit of mvfst 2019-04-22 23:42:46 -07:00