[Xapian-tickets] [Xapian] #654: Getting EOF when using get_data() in a remote database

Xapian nobody at xapian.org
Mon May 4 05:43:17 BST 2015


#654: Getting EOF when using get_data() in a remote database
---------------------------+-----------------------------
 Reporter:  Kronuz         |             Owner:  olly
     Type:  defect         |            Status:  assigned
 Priority:  normal         |         Milestone:  1.3.3
Component:  Backend-Chert  |           Version:  1.2.18
 Severity:  normal         |        Resolution:
 Keywords:                 |        Blocked By:
 Blocking:                 |  Operating System:  All
---------------------------+-----------------------------

Comment (by olly):

 Testing with your `the_bug.cpp`, I definitely see the message from the
 server not the client - the client seems to complete successfully for me.

 On IRC you seemed to confirm that the error wasn't from the client, but
 you mention the client hanging if I follow correctly:

 {{{
 <Kronuz> olly, you are correct, it's the client closing the connection :P
 <Kronuz> ...but I don't know why or why the same program does work with
 our server (because it looks like the client just hangs)
 <Kronuz> something is making the client close the connection while the
 server is still expecting something
 }}}

 Is the client hanging?  If so, can you attach gdb and get a backtrace from
 where it is stuck?

 The server is always still expecting something unless the client
 explicitly sends `MSG_SHUTDOWN`, but the client only sends that if it has
 opened a `WritableDatabase`.  We don't bother for the the read-only case -
 it would just slow things down for no good reason, especially on higher
 latency connections.

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



More information about the Xapian-tickets mailing list