• 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
agent Loading commit data...
docs Loading commit data...
examples Loading commit data...
gst Loading commit data...
m4 Loading commit data...
nice Loading commit data...
random Loading commit data...
scripts Loading commit data...
socket Loading commit data...
stun Loading commit data...
tests Loading commit data...
win32/vs9 Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LGPL Loading commit data...
COPYING.MPL Loading commit data...
ChangeLog Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.win32 Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
common.mk Loading commit data...
configure.ac Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...