@oazmi/kitchensink - v0.10.1
    Preparing search index...

    Enumeration SIZEConst

    this enum contains some common default buffer sizes used across the network library. in most cases, you can either "bring your own" buffer if theses sizes do not suffice you, or sometimes a custom buffer is not even needed, as the underlying implementation takes care of using a sufficiently sized buffer (such as in the case of Deno.DatagramConn, which, I think, always returns a fully loaded buffer when reading).

    Index

    Enumeration Members

    Enumeration Members

    BufferBytes: 4096

    the buffer bytesize of common non-packet based connections (such as tcp).

    DatagramMtu: 16384

    while the MTU on most routers is set to 1500 bytes, and while practically speaking, only ethernet jumboframes would increase this limit to about 9000 bytes, if there's a udp packet coming from localhost, this size limit is greatly increased to 64kb on linux, 16kb on mac-os, and unlimited bytes on windows.

    since the datagram is discarded after a single read (even if you couldn't entirely fit it into your buffer), it presents a challenge for supporting udp packets from localhost applications if they do not segment the packets themselves. thus, if you experience udp packet data corruption on localhost when receiving packets via this library, you can either increase the buffer size set here to something much greater, or modify your os-settings to set a 16kb limit on the MTU of udp datagrams.

    • for windows, I found this gist. although, I haven't tried it or looked at it carefully myself.