diff options
author | unknown <diego.nehab@gmail.com> | 2013-05-28 00:09:30 +0800 |
---|---|---|
committer | unknown <diego.nehab@gmail.com> | 2013-05-28 00:09:30 +0800 |
commit | 734cc23e1f03372314ebad07ffd35117c152afcd (patch) | |
tree | 808531d9c0c84aae57657aff353b08d466a3dcfb /WISH | |
parent | 66cd8cfcee1f14b59450147c16a6bc44ef298edc (diff) | |
download | luasocket-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 'WISH')
0 files changed, 0 insertions, 0 deletions