473,396 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

tomcat not processing incoming requests from MFC app

Hi,

I have an problem that I've been struggling with for a week now and
simply can not resolve. I have an MFC C++ application that sends a
request to a servlet which sends back data continuously - the doGet
method does not return until the client quits. In a different thread
of the same MFC app, I start periodically sending requests to a
different servlet on the same serverthrough a separate CHttpFile
connection in the client program. These requests are not seen by
tomcat - the log files don't show them and the client application itself
hangs on either the httpfile->sendRequest() method or the
httpFile->endRequest() method (if I used sendRequestEx).

The two different servlets do share a resource - a hashtable of sockets,
however it doesnt seem to be a blocking problem since the requests get
processed exactly as intended when I send them from a separate process
on the client side (from another test application).

If I restart the servlet from the tomcat manager window - the first
request (the one that is spinning) quits, and as soon as it quits i see
the first few requests from the second thread come in and obviously get
rejected because the application is being reloaded.

So I guess the question is : what would prevent tomcat from processing
those new requests from a different thread immediately - whats' keeping
them on the queue and why isnt there a new thread laucnhed in tomcat to
handle them?

Thank you!

Dmitriy
Jul 17 '05 #1
1 2128
ct
> These requests are not seen by
tomcat - the log files don't show them and the client application itself
hangs on either the httpfile->sendRequest() method or the
httpFile->endRequest() method (if I used sendRequestEx).


Hmmm...do you ever have more than two requests open to the server? HTTP 1.1
says a client can make up to two concurrent connections to a server.
WinInet enforces that restriction. One way to get around it is to have some
sockets connect to the hostname, some connect to the IP.

Good luck,

C
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gerard Oberle | last post by:
I have searched in vain on the Jakarta site for a compiled binary of the isapi_redirect.dll that is required to pass requests from IIS through to Tomcat. I've found lots of documentation on using...
5
by: nmac | last post by:
Hi all, hopefully someone can offer some sagely advice regarding Production use of Jakarta's Tomcat. First, some brief background. My company have a servlet application that connects to a MySQL...
0
by: Kevin Sagon | last post by:
I am running a J2EE Web App under Tomcat 4.1 with Apache 2.0 proxying requests. Everything is configured and working appropriately however I ran into a problem after configuring J2EE Form...
1
by: SPG | last post by:
Hi, I am relatively new to TOMCAT, and am trying to deploy a web app using it. I have a domain name that I want to use to access my web app directly. By default, I deploy my WAR, and it deploys...
2
by: Steve | last post by:
Does anyone know what is wrong with this code or why I might be experiencing this behavior? I have a Java application that submits HTTP POST requests to a servlet (with content in the body of...
3
by: Alan Krueger | last post by:
Greetings, I've been able to cache Transformer objects in a Tomcat-based servlet application to avoid unnecessary Transformer rebuilding, except for certain ones on certain machines. I'm...
4
by: sracherla | last post by:
I am trying to write a simple windows service that accepts an incoming request; receives a string input and sends a string output. I need this connection to stay alive until the client closes it....
0
by: elpy | last post by:
Hello, I am running a web site using tomcat 6.0 and am having a problem where tomcat's cpu utilization goes up to 95-97% and the response time for even simple page loads becomes very slow. If I use...
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.