aspose file tools*
The moose likes Tomcat and the fly likes TCP_ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "TCP_ERROR" Watch "TCP_ERROR" New topic
Author

TCP_ERROR

jos vin
Greenhorn

Joined: Feb 25, 2004
Posts: 2
I have a "TCP_ERROR" problem while connecting to a website.
Am connecting to website on a server say X from client machine using a IE browser with the site URL requesting for a page. As per the process, at this moment, the web-server connects to the database server say Y via APIs and does some backend data processing in Server X which takes about 20-30 minutes. By that time, on the client machine I get the "TCP_ERROR".
Basically, the IE browser (Client) cannot wait until the Server returns the data to the page.
How do I resolve the "TCP_ERROR" problem ?
On Server X, am using JAKARTA-TOMCAT-4.1.24 as web server.
Operating System as Window NT 5.0 Build
Memory of 1024 MB

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

stop waiting?

But seriously.. if you're just using the browser to 'launch' an extremely long-running process, you could try spawning a new Thread to do the long process, and use some sort of 'polling' to determine if the job is done. That is...
1) request the URL that launches the process.
2) after any 'setup work' (like authorization, connections, etc) launch a thread to do the processing.
3) forward to a JSP page that uses HTML meta refresh tags to...
4) request a 'status' page. This page will query some area that will be used by the Thread you launched, to notify the user that the process is "done".
5) If not done, then reload the meta refresh page, else.. load a 'finished' page


The 'area' could be the Session, or a database, or a file.
[ February 25, 2004: Message edited by: Mike Curwen ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TCP_ERROR
 
Similar Threads
TCP_ERROR
How to Resolve Network Error (tcp_error) for queries taking a long time
Sending a request and making the browser window invisible
Is the HttpSession per Tomcat session or per client?
Java app on Tomcat return "Network Error (tcp_error)" error