LoginSignup
0
0

More than 5 years have passed since last update.

Net_TokyoTyrantでエラーが出てしまいます。

Posted at

現在、Net_TokyoTyrantを利用してphpからデータベースを操作しているのですが、頻繁に書き込みを行うと下記のエラーが出て、データベースが落ちてしまいます。

Fatal error: Uncaught exception 'Net_TokyoTyrantNetworkException' with message '111, Connection refused' in /usr/share/pear/Net/TokyoTyrant.php:53 Stack trace: #0

また、TokyoTyrant.phpの53行目付近は下記の通りです。

48: public function connect($server, $port, $timeout = 10)
49: {
50:   $this->close();
51:   $this->socket = @fsockopen($server,$port, $this->errorNo, $errorMessage, $timeout);
52:   if (! $this->socket) {
53:        throw new Net_TokyoTyrantNetworkException(sprintf('%s, %s', $this->errorNo, $errorMessage));
54:   }
55:   $this->connect = true;
56: }

何か解決方法はないでしょうか?
よろしくお願い致します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0