Skip to content

[speculative/not to land] Add pcap logging for decorated sockets#9338

Draft
yschimke wants to merge 5 commits intosquare:masterfrom
yschimke:trace
Draft

[speculative/not to land] Add pcap logging for decorated sockets#9338
yschimke wants to merge 5 commits intosquare:masterfrom
yschimke:trace

Conversation

@yschimke
Copy link
Collaborator

@yschimke yschimke commented Feb 21, 2026

Likely this goes nowhere.

Adds a RecordingSocketFactory that decorates a TCP socket and captures events as Pcap or a sealed event trait. The pcap file is produced without running anything external like tshark.

A potential debugging tool...

  • after the fact flaky tests
  • visibility into HTTP/2 frames
  • confirming behaviour of another speculative idea - mock sockets

The last point is why I'm exploring this. See whether we can run some category of tests without real I/O and flakiness. Run in near instant time.

Adds a RecordingSocketFactory that decorates a TCP socket and captures events as Pcap or a sealed event trait.

A potential debugging tool...

- after the fact flaky tests
- visibility into HTTP/2 frames
- confirming behaviour of mock sockets

The last point is why I'm exploring this. See whether we can run some category of tests without real I/O and flakiness. Run in near instant time.
@yschimke
Copy link
Collaborator Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant