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

Xapian nobody at xapian.org
Wed May 1 13:02:47 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 suppose the error looks different in linux, yes.

 In the chat olly asked:

 > doesn't the fake server part of your reproducer leak fds?
 The server doesn't ever close the socket, yes, but you could (and maybe
 should) also close the socket as the last line of `fake_server_process()`
 by doing `close(sock)` so the server doesn't leak. The reproducer will
 still work and show the problem since the file descriptor in the client's
 end is still never closed.

 > but even patching that and using fork() to run the fake server i'm not
 able to reproduce it showing your patch as fixing the leak
 Apparently, after reading your last comment above, you got it working?

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



More information about the Xapian-tickets mailing list