Re: Something like "ping" for windows messages.
- From: "Ajay Kalra" <ajaykalra@xxxxxxxxx>
- Date: Fri, 8 Dec 2006 10:10:07 -0500
"Peter Smithson" <Peter_Smithson@xxxxxxxxxxx> wrote in message
news:1165588630.886368.129140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
message
Ajay Kalra wrote:
...
Alternatively, if its
busy doing some task (some long computation), it will receive the
until the task is complete.OP
That's the point of my test. Is it busy?
SendMessgeTimeoput is best suited for this. This is how task manager
determines if a process is hung or not.
I am not aware of a tool which does this as I dont know what exactly you
achieve by doing this.
I'll explain a bit more.
It's a server process normally dealing with comunications to a few
clients (MFC apps on other PC's) and building HVAC controllers. There
is also a simple webserver built in. The webserver is going to be used
a bit more and I want to know what effect it will have on the response
time to the other services it provides (listening on other sockets).
I have a test web client that will constantly hit the port dealing with
http requests. As a guide to how responsive the server is going to be
for it's other tasks, I thought I'd see how quickly it could respond to
a windows message. If the webserver part is sending a large file,
will it block until the file is sent or is there code in there to pass
it out in chunks so it can still do it's other tasks? That's the kind
of thing I'd like to find out. Looking at the code will give me an
idea but I'd rather get some sort of measurement.
If it turns out that the sending a large file via http causes the
server to hang for long periods then I need to look at putting it on
another thread perhaps.
If you are doing all this in one thread, you will need to have a new thread
to even respond. I dont know how your setup is but typically a server will
not a window associated with it. So I am not sure what you mean by sending
it a window message.
I'd like to do other tests where the webserver is sending out a series
of small files. What effect will this have on the repsonsiveness of
the server? I need a good way of measuring it.
I dont know. I am not clear about your server setup. Does it have sockets to
communicate with client?
--
Ajay Kalra [MVP - VC++]
ajaykalra@xxxxxxxxx
.
- Follow-Ups:
- Re: Something like "ping" for windows messages.
- From: Peter Smithson
- Re: Something like "ping" for windows messages.
- References:
- Something like "ping" for windows messages.
- From: Peter Smithson
- Re: Something like "ping" for windows messages.
- From: Ajay Kalra
- Re: Something like "ping" for windows messages.
- From: Peter Smithson
- Something like "ping" for windows messages.
- Prev by Date: resource dll problem
- Next by Date: Re: Trouble with CDialog DoModal()
- Previous by thread: Re: Something like "ping" for windows messages.
- Next by thread: Re: Something like "ping" for windows messages.
- Index(es):
Relevant Pages
|