Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8402331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:01:37+00:00 2026-06-09T22:01:37+00:00

I followed this tutorial and implemented a simple chat application. I’m testing it both

  • 0

I followed this tutorial and implemented a simple chat application.
I’m testing it both in latest Mozilla Firefox and Google Chrome browsers.

My main concern is that the messaging exchange does not seem to happen in real time. Even though the all the server processing happens in less than a second from the request, the browser gets the response just after the AsyncContext timeout is exceeded.

Even is the default 10 seconds or a custom value added through AsyncContext.setTimeout() the time of response is the same with the timeout. Should this be the expected behaviour? Is there a way to force the server to send the response as soon as it is ready and not wait the hole timeout interval?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:01:38+00:00Added an answer on June 9, 2026 at 10:01 pm

    you may have forgotten to complete the async context. Java 6 docs: http://docs.oracle.com/javaee/6/api/javax/servlet/AsyncContext.html#complete()

    watcherExecutor.execute(new Runnable(){
                            public void run() {
                               // publish a new bid event to a watcher
                               aCtx.getResponse().getWriter().print("A new bid on the item was placed. The current price ..., next bid price is ...");
                               aCtx.complete();
                            };
                         });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have followed this tutorial for building my chat application. When I try to
I followed this tutorial to implement facebook into my application. All I want is
I followed this tutorial on how to add Box2D to my existing ViewBased Application.
I followed this tutorial . But whenever I try to log in with my
I followed this tutorial http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html I wrote the manifest File giving all the permissions
I followed this tutorial http://stevejenkins.com/blog/2011/08/how-to-install-apc-alternative-php-cache-on-centos-5-6/ to install apc on my centos vps hosting but
I followed this tutorial to get started using Android host api with an Arduino
I followed this tutorial , put js, css and gif in the respective folder.
I followed this tutorial: https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf However, I can't seem to set the path right.
I followed this tutorial here: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/ It works great but when I enable CSRF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.