#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
  1. 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.

  2. Zash on

    .

    Changes
    • tags Status-Started Patch
    • owner Zash
  3. Zash on

    Fixed in https://hg.prosody.im/0.11/rev/2115496e8251

    Changes
    • tags Status-Fixed
  4. Zash on

    Changes
    • tags Milestone-0.11

New comment

Not published. Used for spam prevention and optional update notifications.