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

Xapian nobody at xapian.org
Tue Apr 30 16:51:44 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 Kronuz):

 I've added a reproducer which shows the socket leak. It implements the
 most basic server which throws an exception after client opens the

 Run as `c++ -std=c++14 -o tst-xapian_remote -lxapian tst-xapian_remote.cc
 && ./tst-xapian_remote`, after a while, you'll start receiving
 `NetworkError: Couldn't connect (context: remote:tcp(localhost:5000))
 (Can't assign requested address)`, when there are no longer any file
 descriptors available.

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

More information about the Xapian-tickets mailing list