Skip to content

Commit

Permalink
Change default limit to max payload length
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 15, 2023
1 parent 3418a0c commit 8fc4d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResourceUdpSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class ResourceUdpSocket implements UdpSocket, ResourceStream
use ForbidCloning;
use ForbidSerialization;

public const DEFAULT_LIMIT = 8192;
public const DEFAULT_LIMIT = 65507; // Max UDP payload size.

/** @var resource|null UDP socket resource. */
private $socket;
Expand Down

0 comments on commit 8fc4d47

Please sign in to comment.