[Xapian-discuss] tcp deamon and remote connection

Sergey Kozhukhov seregka at gmail.com
Thu Jul 23 15:19:17 BST 2009


I'm trying to use xapian from php script with TCP daemon.

I started TCP daemon: xapian-tcpsrv --port 5050 --writable /path-to-db

When I trying to get access to it within my php-script with
remote_open_writable("localhost", 5050) or remote_open("localhost",
5050) apache fails with signal 11:

dev kernel: pid 35923 (httpd), uid 80: exited on signal 11

TCP demon also shows me different errors:
Connection from, port 62652
Got exception NetworkError: write failed (context: /path-to-db) (Broken pipe)
Closing connection.
Connection from, port 45245
Got exception NetworkError: read failed (context: /path-to-db)
(Connection reset by peer)
Closing connection.
Connection from, port 44209
Got exception NetworkError: Received EOF (context: /path-to-db)
Closing connection.

Any suggestions why?

There are also another question: How it's better to organize xapian
search while using cluster of 5 servers?

xapian-core 1.0.11
Language: PHP 5.2.6 with Suhosin-Patch (cli)
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.32
  Best Regards,
  Sergey Kozhukhov

More information about the Xapian-discuss mailing list