Skip to content

Commit

Permalink
tunnel-connection: Ensure JSON request ends up in its own UDP packet
Browse files Browse the repository at this point in the history
When opening the tunnel, it seems problematic if a datagram and stream
data end up in the same UDP packet. We make our dummy-datagram larger to
avoid this.

Co-authored-by: Håvard Sørbø <[email protected]>
  • Loading branch information
oleavr and hsorbo committed Aug 22, 2024
1 parent b753294 commit 34c1548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fruity/xpc.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,7 @@ namespace Frida.Fruity {
}

private void on_control_stream_opened () {
var zeroed_padding_packet = new uint8[1024];
var zeroed_padding_packet = new uint8[PREFERRED_MTU];
send_datagram (new Bytes.take ((owned) zeroed_padding_packet));

send_request (Json.to_string (
Expand Down

0 comments on commit 34c1548

Please sign in to comment.