Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is normal / expected. Depending on your browser and (especially) front-end server (Apache/NGINX) and web-server (Tomcat?) configuration you will have:</p> <ul> <li>maximum wait time for the first response (connection timeout, probably 10 seconds in your case)</li> <li>maximum wait time for the complete response</li> </ul> <p>These setting basically prevent the server from being spammed with requests that never complete and running out of threads in the thread pool.</p> <p>You could increase these values, however you should always create your code like this with timeouts in mind. Basically you want to do on the client side:</p> <ul> <li>Open long pull</li> <li>Wait for response</li> <li>If received, continue</li> <li>If (timeout) error, go to step 1</li> </ul> <p>Please note that this solution is not scalable: usually you would have (for example) 200 thread processing incoming requests. The idea is that they finish fast. If the thread pool is exhausted, users will have to wait for a new connection. But with 200 threads you are able to serve well over 2.000 users. But not if threads are blocked because of long pool.</p> <p>If possible, you should really look into <a href="https://blogs.oracle.com/arungupta/entry/websockets_and_java_ee_7" rel="nofollow">WebSockets</a>, which are now available in new versions of Java. </p> <p><em><strong>EDIT</em></strong> As Konrad suggested below, you can use something like <a href="http://socket.io/" rel="nofollow">socket.io</a>, which falls-back automatically to other mechanisms. There's a Java-based implementation for sever-side available call <a href="https://github.com/Atmosphere/atmosphere" rel="nofollow">Atmosphere</a>, but I haven't tried it though.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload