• 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.
    83c5d0fc
Name
Last commit
Last update
..
Makefile.am Loading commit data...
http.c Loading commit data...
http.h Loading commit data...
meson.build Loading commit data...
pseudossl.c Loading commit data...
pseudossl.h Loading commit data...
socket-priv.h Loading commit data...
socket.c Loading commit data...
socket.h Loading commit data...
socks5.c Loading commit data...
socks5.h Loading commit data...
tcp-active.c Loading commit data...
tcp-active.h Loading commit data...
tcp-bsd.c Loading commit data...
tcp-bsd.h Loading commit data...
tcp-passive.c Loading commit data...
tcp-passive.h Loading commit data...
udp-bsd.c Loading commit data...
udp-bsd.h Loading commit data...
udp-turn-over-tcp.c Loading commit data...
udp-turn-over-tcp.h Loading commit data...
udp-turn.c Loading commit data...
udp-turn.h Loading commit data...