1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-25 15:43:13 +03:00
Commit Graph

10 Commits

Author SHA1 Message Date
Aman Sharma
2369ecb69b Use iovec instead of IOBuf in QuicAsyncUDPSocket::write and QuicAsyncUDPSocket::writeGSO
Summary: See title

Reviewed By: mjoras

Differential Revision: D61048705

fbshipit-source-id: 60dc63cc67f63be6f0ac6cbe0e766172a8c79d7c
2024-10-02 15:13:23 -07:00
Joseph Beshay
96ae54f2a9 Decide how to implement recvmmsg in runtime
Summary:
FOLLY_HAVE_RECVMMSG is no longer available: D59072339.

This changes LibevQuicAsyncUDPSocket to use recvmmsg and implement it using recvmsg in runtime if it's not available.

Reviewed By: kvtsoy

Differential Revision: D59527136

fbshipit-source-id: 18acc3af74a8782531b92b71aaa9bc0e0dfd8019
2024-07-10 17:03:05 -07:00
Matt Joras
aefc9e369b Introduce quic::Optional
Summary:
The idea here is to make it so we can swap out the type we are using for optionality. In the near term we are going to try swapping towards one that more aggressively tries to save size.

For now there is no functional change and this is just a big aliasing diff.

Reviewed By: sharmafb

Differential Revision: D57633896

fbshipit-source-id: 6eae5953d47395b390016e59cf9d639f3b6c8cfe
2024-06-11 11:02:02 -07:00
Joseph Beshay
24853da2fc Use two separate watchers for read and write
Summary: As title.

Reviewed By: kvtsoy

Differential Revision: D57628907

fbshipit-source-id: 695dda724d3e3d6719a19b8274148772063b82cd
2024-05-22 15:35:32 -07:00
Konstantin Tsoy
3240f33387 Writable events impl for LibevQuicAsyncUDPSocket
Summary: Writable events impl for LibevQuicAsyncUDPSocket

Reviewed By: jbeshay

Differential Revision: D56373378

fbshipit-source-id: badc774d24b64b0a5046483434a29c93549a34aa
2024-05-21 10:40:11 -07:00
Joseph Beshay
cad7327384 Support ErrMessageCallback in LibevQuicAsyncUDPSocket
Summary: As title. The functionality is mostly copied over from folly::AsyncUDPSocket.

Reviewed By: kvtsoy

Differential Revision: D54832808

fbshipit-source-id: c2ee71b28c64f26b826d544771593c9c1d3135ef
2024-03-13 14:25:18 -07:00
Konstantin Tsoy
d6bebfc41f Implement snd/recv sock buf setters
Summary: Implement snd/recv sock buf setters

Reviewed By: mjoras

Differential Revision: D54783590

fbshipit-source-id: 06ab1510d38b0e370e6c0ab8971f21944b95fcfd
2024-03-11 21:51:53 -07:00
Joseph Beshay
42a59f9a45 Fix LibevQuicAsyncUDPSocket write for macOS
Summary: Previously, writing would fail due to the wrong address size being used. This fixes it.

Reviewed By: lhuang04

Differential Revision: D53627612

fbshipit-source-id: cecbecd210580287336d0e72f486b1044bffb035
2024-02-09 16:31:52 -08:00
Matt Joras
e758a074e3 Don't log for GRO/timestamping not implemented
Summary:
It's fine to just return that it didn't work.

(Note: this ignores all push blocking failures!)

Reviewed By: kvtsoy

Differential Revision: D53298640

fbshipit-source-id: 7a25351a716541c1f028c28c40be30fde821b5cd
2024-01-31 21:04:21 -08:00
Joseph Beshay
0b4b1ae8e4 Add LibevQuicAsyncUDPSocket implementation
Summary: Introduces LibevQuicAsyncUDPSocket; a pure libc socket wrapper that implements QuicAsyncUDPSocket that is driven by LibevQuicEventBase.

Reviewed By: mjoras

Differential Revision: D51285024

fbshipit-source-id: 92c5ef6e8d0ed051624a60a1854d0805df31894e
2023-12-14 00:24:12 -08:00