#1438 File transfer fails near the end when using epoll

Reporter Link Mauve
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Status-Fixed
  • Milestone-0.12
  • Type-Defect
  1. Link Mauve on

    What steps will reproduce the problem? 1. Enable network_backend = "epoll" 2. Send a file through XEP-0234 using an XEP-0260 candidate selecting Prosody’s mod_proxy65. 3. Observe the file arriving on the other end. What is the expected output? The file arrives in full on the other end. What do you see instead? The file transfer stops at like 99%. What version of the product are you using? On what operating system? Prosody trunk commit 10276:4e4ce7400b39, on ArchLinux. Please provide any additional information below. A file smaller than 4 KiB goes through, smaller than 8 doesn’t, smaller than 12 does, etc. This sounds like the bug where LuaSocket and Prosody have different buffer sizes and the buffer then never gets flushed if it isn’t in the right window.

  2. Zash on

    Discussed in the chatroom. Some additional debug logging added. Detailed logs and possibly a packet capture would be helpful in figuring it out.

    Changes
    • tags Status-NeedInfo
    • owner Zash
  3. Zash on

    Has this happened again since adding that debug logging?

  4. Zash on

    No updates, assuming it fixed itself at some point.

    Changes
    • tags Milestone-0.12 Status-Fixed

New comment

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