#1619 server_epoll, net.adns: Empty UDP packet sent on connect
Reporter
Zash
Owner
Zash
Created
Updated
Stars
★ (1)
Tags
Milestone-0.11
Priority-Medium
Type-Defect
Status-Fixed
Patch
Zash
on
net.adns wraps the DNS socket with an API that ends up making it watch for both read and write(able) events. With server_select, the send method is disabled by net.adns, but this does not work the same way in server_epoll and it ends up trying to send the empty write buffer. With TCP this does nothing but is needed for LuaSec sometimes(?), but with UDP DNS it ends up sending an empty packet.
net.adns wraps the DNS socket with an API that ends up making it watch for both read and write(able) events. With server_select, the send method is disabled by net.adns, but this does not work the same way in server_epoll and it ends up trying to send the empty write buffer. With TCP this does nothing but is needed for LuaSec sometimes(?), but with UDP DNS it ends up sending an empty packet.
.
ChangesFixed in https://hg.prosody.im/0.11/rev/2115496e8251
Changes