473,387 Members | 1,575 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,387 software developers and data experts.

Determine if app fails...

Okay, crazy question.

I have a tcp client/server app running on a machine. The app takes a string, delimited by various characters (hl7), parses it, and then Acks
back to the client. The problem we are having is at times, the client (a different vendor's application) sends unexpected trash in the
string. It is nearly impossible for us to code for every "Trashy" event that may occur. At this point, our app (rarely!) Hangs and is unable
to ack back.
The question is: Is there anyway to determine if the application is still running, but "Hung up"??? I know this is a vague question, but any
help would be greatly appreciated.

Thanks!!

Daniel

--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Dec 18 '06 #1
3 842
Biffster (Bi**@Murray.com) wrote in
news:45**********************@news.newshosting.com :
The problem we are having is at times, the client (a different
vendor's application) sends unexpected trash in the string. It is
nearly impossible for us to code for every "Trashy" event that may
occur.
Why not? There are several methods of validing strings from using regular
expressions to brute for parsing.
At this point, our app (rarely!) Hangs and is unable to ack
back.
Shouldn't you disconnect the socket? I mean there should be no reason why
your app hangs...
The question is: Is there anyway to determine if the application
is still running, but "Hung up"??? I know this is a vague question,
but any help would be greatly appreciated.
You could use SNMP, WMI, or some other management framework. Typically this
type of monitoring is handled via some sort of heartbeat mechanism.

Dec 18 '06 #2
what about creating another app (or service) that will check your process
every so often....like every 5 minutes it check to see if your app is
responding. if it isnt, it kills it and restarts it.....
--
-iwdu15
Dec 19 '06 #3
It's not a crazy question, though as Spam Catcher has mentioned... it seems
a bit unusual that you can't trap the parsing error, reject the request and
continue on. Even if you can catch the error you may want to add a
"heartbeat" on an important server in any case.

I would avoid "testing" the server via the front-end and deciding that the
lack of a response meant it hung rather I'd suggest you choose another port
to send a signal to. You simply monitor that port to see if you have a
signal. An added bonus is that it can send various signals, a heartbeat (at
a regular interval) but also "query received", "response sent", "I'm idle"
and/or any other signal you might want to keep an eye on.

I'd suggest you search the Internet as I have little doubt that somebody has
written something and placed it in the public domain. I wouldn't limit your
search to VB or .Net as it shouldn't be too hard to translate from Java or
C++ if that's what you end up with.

Tom

"Biffster" <Bi**@Murray.comwrote in message
news:45**********************@news.newshosting.com ...
Okay, crazy question.

I have a tcp client/server app running on a machine. The app takes a
string, delimited by various characters (hl7), parses it, and then Acks
back to the client. The problem we are having is at times, the client (a
different vendor's application) sends unexpected trash in the
string. It is nearly impossible for us to code for every "Trashy" event
that may occur. At this point, our app (rarely!) Hangs and is unable
to ack back.
The question is: Is there anyway to determine if the application is still
running, but "Hung up"??? I know this is a vague question, but any
help would be greatly appreciated.

Thanks!!

Daniel

--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Dec 19 '06 #4

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

Similar topics

17
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number....
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
0
by: arnottclose | last post by:
I need to open a Target db and determine if it is in a compiled state and if not to Compile it. The Application.iscompiled status is showing the value for the host mdb - not the Target (when in...
1
by: Me | last post by:
Hi all, I have an Access application that has to import hundreds of other MDB's, some access 97 and some 2000, and merge them into several large mdb's. so far so good, but my command: Set...
21
by: Joakim Hove | last post by:
Hello, I have implemented a small library with a function a datatype to manage temporary storage, and handle out correctly casted storage. The function to get a double pointer is for instance: ...
0
by: Ray Stevens | last post by:
I have an IDL defined as follows: public StringBuilder LEGAL_FREEFORM ; In this case it is obvious that the Dim is 20 with a length of 78, however I want to be able to determine this at run...
8
by: Steven Van Dyke | last post by:
Hi I need a code snippet to determine if my computer is connected to a network or not. There's probably a System.Net function for it, but I cannot find it. Thanks, Steve
3
by: Rob Nicholson | last post by:
How do you determine if a program is running in the Visual Studio IDE/debugger as opposed to standalone? We often include support files in the same folder as the executable and would so something...
10
by: MLH | last post by:
I thought I could run docmd.SetWarnings in the immediate window with no argument and A97 would return True or False, depending on the current setting. I was wrong. Anybody know how to make the...
4
by: Bill Fuller | last post by:
I am trying to determine the type for ActiveControls using 3rd party controls (Infragistics in this case) during runtime and getting a rather odd return type at runtime for the UltraWinEditor. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.