[Xapian-tickets] [Xapian] #781: Sockets never closed on RemoteDatabase errors

Xapian nobody at xapian.org
Wed May 1 21:12:14 BST 2019


#781: Sockets never closed on RemoteDatabase errors
----------------------------+-------------------------
 Reporter:  Kronuz          |             Owner:  olly
     Type:  defect          |            Status:  new
 Priority:  high            |         Milestone:
Component:  Backend-Remote  |           Version:
 Severity:  blocker         |        Resolution:
 Keywords:                  |        Blocked By:
 Blocking:                  |  Operating System:  All
----------------------------+-------------------------

Comment (by olly):

 > Apparently, after reading your last comment above, you got it working?

 No - my last comment above was before those on chat - in that comment I
 thought I could reproduce the leak, because the reproducer failed due to
 running out of fds (once I did the simple patching to get it to build on
 Linux).

 But after I made the comment I then tried to use the reproducer to show
 the fix worked.  I had to adjust it to run with xapian git master (it hard
 codes the remote protocol version for 1.4.x), but then after applying your
 patch to git master it still reported leaks - that presumably either means
 the reproducer is buggy or your patch doesn't solve the leak.

 Then I spotted the server thread leaked fds, so moved that to a child
 process.  But the parent process still leaks fds.

 I'll try to debug what's going on.

--
Ticket URL: <https://trac.xapian.org/ticket/781#comment:13>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list