Results 1 to 3 of 3

Thread: Control socket timeout

  1. #1
    Join Date
    Aug 2010
    Posts
    26

    Default Neo4j rest cypher query control socket timeout

    Hi is it possible to control the socket timeout settings for the RestCypherQueryEngine?

    I have a couple of long queries that do not run in the default 30s. I have looked at both sets of docs and cant find a mention of it.

    Cheers

    Code:
    java.net.SocketTimeoutException: Read timed out
    	at java.net.SocketInputStream.socketRead0(Native Method)
    	at java.net.SocketInputStream.read(SocketInputStream.java:150)
    	at java.net.SocketInputStream.read(SocketInputStream.java:121)
    	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:643)
    	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:589)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1319)
    	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    	at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:218)
    	at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:129)
    	at com.sun.jersey.api.client.Client.handle(Client.java:616)
    	at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)
    	at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72)
    	at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:454)
    	at org.neo4j.rest.graphdb.ExecutingRestRequest.get(ExecutingRestRequest.java:114)
    	at org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEngine.java:56)
    Last edited by msduk; May 17th, 2012 at 08:04 PM. Reason: clarity

  2. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    Can you please raise a github issue at github.com/neo4j/java-rest-binding/issues ?

    Thanks

    Michael

  3. #3
    Join Date
    Aug 2010
    Posts
    26

    Default

    Hi, I don't think issues are enabled for that sub-repository. I am happy to make it if you can give me access though.

    Regards,

    Mark

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •