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

Xapian nobody at xapian.org
Tue Apr 30 14:35:03 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):

 That’ll be a problem too. In my experience, properly handling file
 descriptors is always tricky to say the least. What I do is I only close
 file descriptors in destructor of the owner object and instead use
 shutdown everywhere else. Otherwise really nasty things can happen such as
 file descriptors being use where they shouldn’t.

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



More information about the Xapian-tickets mailing list