473,666 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to find server-client connection failure

5 New Member
hi all

i am using TCP/Ip

i am running server application in one PC
client application in other PC
i am connecting these thro PC's in LAN

If i remove the LAN cable

then it takes 8minites to identity the connection failure


how to find the connection failure in lesser time

once the Cable connection failed (socket not closing immediatly)
even if we write the data on socket its not giving failure

pls help me regarding this
Apr 10 '07 #1
3 3559
Banfa
9,065 Recognized Expert Moderator Expert
Remember a TCP/IP network is supposed to be tolerant of network breaks so it will attempt to find a alternative route to the destination.

Do you have any regular incoming data?

If you are receiving data at least 1 a minute then you can close the socket if there is no data for say 2 minutes, or you can send out a message and if there is no reply then close the socket.

Remember the timing need to be chosen to take account of the relative round trip times for the destination. i.e. the round trip time to a computer on the other side of the world is likely to be longer then the round trip time to a computer on the other side of the office.

Both ends of you link need to be able to recover from having their socket closed.
Apr 10 '07 #2
RevBooter
69 New Member
would a solution to this not be a coding issue, as opposed to network\hardwar e related?
Apr 10 '07 #3
jlwynn
7 New Member
hi all

i am using TCP/Ip

i am running server application in one PC
client application in other PC
i am connecting these thro PC's in LAN

If i remove the LAN cable

then it takes 8minites to identity the connection failure


how to find the connection failure in lesser time

once the Cable connection failed (socket not closing immediatly)
even if we write the data on socket its not giving failure

pls help me regarding this
turn off the system page file and reduce the programs starting up when the os boots and then enable auditing . this way you will find the failure and fix it rather than guessing what failed. GOOGLE IT if you don't know how
google is a excellent repository of information
Apr 11 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
10346
by: Anand Pillai | last post by:
I would like to add a feature to one of my network programs. The requirement is to find out if a server is alive by sending it requests. I know of the standard ICMP ping, and searched for python modules able to 'PING'. The only hit I got was Jeremy Hiltons ping package, written for Python 1.4, and it does not work with the latest Python versions (2.0 upwards). Are there other ways of finding out (in a few lines of code) whether a server...
10
2281
by: Chris Simon | last post by:
A bit puzzled by this... 1. Ask the validator to look at http://www.nantperis.org.uk/index.php.en (the exact filename of the page) and it brings back an error: 300 Multiple Choices. I could understand that if the filename was specified without the .en as there are more than one version of the page in different languages. Is it stripping the .en? Has anyone managed to get it to find a .en file
4
10125
by: Laurence Neville | last post by:
I have just set up an ASP-based site to a new Windows 2003 SP1 server with IIS 6.0. Before now the site has run under IIS 5.0 on Windows 2000. Every time an ASP page is opened, IE shows the error: "Cannot find server or DNS Error". All static page types open fine (HTM, GIF etc) The confusing thing is - I have allowed Active Server Pages under Web Service Extensions in the IIS manager. No other extensions are allowed, other than...
1
10928
by: bill yeager | last post by:
I have a datagrid control within a datalist control. When I try and do a "Find" on the control, the object comes back with nothing and then my pgm crashes. I am 100% sure that my datagird inside my datalist has an id of "Datagrid3". dgChild comes back with "Nothing" while debugging. Here is my code in the itemdatabound event for the datalist: <code>
2
3162
by: Josh | last post by:
Hi Guys, I have been stuck on this problem for several days now, i have a set of nested datagrids. Inside the second datagrid i have a dropdown list, a textbox and a label. I want the textbox to update the label with the value of the dropdown list * the text box quantity. I am using an onTextChaged even on the textbox, the problem i have is that i can not find the lblPrice control. Thanks for the help,
2
8725
by: Chris Fink | last post by:
This should be relatively simple but I am unable to find an asp:button tag in a datalist footer. I have tried it numerous ways including the FindControl method from the many events that the DataList exposes and the result is always null (I've determined the OnItemDataBound event will not find the footer controls). I understand that I have to navigate the datalist object tree, but I feel like it is a guessing game and am hesitant to do it...
9
5053
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ******************************************************************************* <asp:DataGrid visible="False" border=1
10
5304
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a certain control by id, but I want to find all controls of a certain type (DropDownList in this case). Is there an easier way than to get a control count of the page, loop through all controls on that page, examine their type and, if they're a...
4
14705
by: BLACKDOG157 | last post by:
I installed sql server on my PC, and when I look at the Programs I do find sql server, but when I click on that I get "configuration tools". I don't see anything that says "enterprise manager" for instance. How can I find it so I can make a shortcut to it? Thanks
3
6867
by: comp_databases_ms-sqlserver | last post by:
This post is related to SQL server 2000 and SQL Server 2005 all editions. Many of my stored procedures create temporary tables in the code. I want to find a way to find the query plan for these procs Repro --*********************************** use pubs go CREATE PROCEDURE Test @percentage int
0
8454
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8561
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8645
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7389
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.