This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #118843] work around recv() behaviour on cygwin
authorTony Cook <tony@develop-help.com>
Mon, 13 Jan 2014 05:20:00 +0000 (16:20 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 14 Jan 2014 22:37:26 +0000 (09:37 +1100)
commite122534c08d52962b50cef019dffa861efbfb801
treea149a9fb9ab6bdb305d338dd13a7e561adc8fa53
parent171b35b00178c63555d0095adc2f2e6a72b3d772
[perl #118843] work around recv() behaviour on cygwin

cygwin inherits recv behaviour from the Win32 sockets API which doesn't
modify the namebuf or it's associated size when you recv() from a
connected socket, handle this the same way Win32 does by zeroing the
length if it's the same as before calling recv().

Also adds some basic socket function tests to the core tests.
MANIFEST
pp_sys.c
t/io/socket.t [new file with mode: 0644]