Neo4j 会话超时

Neo4j session timeout

运行 来自 Rails 的一些非常简单的东西:

w = Woka.first
Faraday::TimeoutError: too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 1 requests on 70293322572340, last used 60.011694 seconds ago

之后,如果不重新启动服务器,则无法建立其他会话。

此处应更改哪些服务器参数以避免出现这种情况?

我又改了文件config/environemnts/development.rb

  config.neo4j.session_options = {
    basic_auth: { username: 'user', password: 'pass'},
    initialize: {
        request: {
            open_timeout: 2,   # opening a connection
            timeout: 1200      # waiting for response
        }
    }
  }

问题已解决。