• Jakub Adam's avatar
    udp-bsd: Fix recv with small buffer on Windows · 83c5d0fc
    Jakub Adam authored
    The underlying GSocket implementation on Windows returns an error when
    the user-provided buffer isn't large enough to fit the whole datagram
    received on a message-oriented socket.
    When this occurs, in order to preserve identical behavior of udp-bsd
    NiceSocket across platforms, we have to mute the error and set the
    received message length to the size of the provided NiceInputMessage.
    Any excess portion of the message gets discarded.
    Fixed udp-bsd test on Windows.
    GLib 2.48 is required in order to use G_IO_ERROR_MESSAGE_TOO_LARGE.
configure.ac 11.4 KB