aboutsummaryrefslogtreecommitdiff
path: root/NEW
diff options
context:
space:
mode:
authorunknown <diego.nehab@gmail.com>2013-05-28 00:09:30 +0800
committerunknown <diego.nehab@gmail.com>2013-05-28 00:09:30 +0800
commit734cc23e1f03372314ebad07ffd35117c152afcd (patch)
tree808531d9c0c84aae57657aff353b08d466a3dcfb /NEW
parent66cd8cfcee1f14b59450147c16a6bc44ef298edc (diff)
downloadluasocket-734cc23e1f03372314ebad07ffd35117c152afcd.tar.gz
luasocket-734cc23e1f03372314ebad07ffd35117c152afcd.tar.bz2
luasocket-734cc23e1f03372314ebad07ffd35117c152afcd.zip
Fixed inet_pton and a new Winsock UDP bug.
inet_pton was copying the entire sockaddr_in struct, rather than just the sin_addr field... I am a bit unsure about the UDP fix, because it may affect TCP as well. On UDP sockets, when a sendto fails, the next receive/receivefrom fails with CONNRESET. I changed sock_recv/sock_recvfrom in wsocket.c to skip the CONNRESET from the recv/recvfrom, hoping that if the socket is TCP, sock_waitfd will get the CONNRESET again. The tests pass, but this should be tested more thoroughly.
Diffstat (limited to 'NEW')
0 files changed, 0 insertions, 0 deletions