Windows XP doesnt  detect broken TCP connection

Hi Guys,
I have a client and a server. When they are both on a linux or both on a Windows machines there is no problem.
When the server is on linux and the client is on Windows XP, when the server goes down, the client does not recieve a SocketException.Connection Reset like it should.
It works fine otherwise, does anyone know why Windows cant see the TCP connection breaking if the server is on linux?

Java's platform independence cannot shield you from all variations in the implementation of the TCP/IP stack in the underlying operating system.
If you need to do special tricks for different operating systems chances are you are doing something in a non-optimal way. For the vast majority of programmers TCP/IP "Just Works". You open your sockets, do I/O on them, eventually close them.
If you write into a socket whose peer has done receive shutdown you eventually get an IOException (I'll guesstimate within one or three minutes absolute worst case). If you don't get the IOException then likely your program has a bug, such as ignoring exceptions. Far lesser likelihood is OS bug.
When you say "server goes down" do you mean the OS goes down (as in unplug the network connector), or the OS is shut down with a "shutdown" command, or the program is closed? TCP/IP will behave differently if the remote OS is forcefully brought down vs. the program exits and OS remains running. A "shutdown" command may exhibit either behaviour, depending on OS implementation and random timing effects.

Similar Messages

  • Thinkpad Edge S430 - Windows does not detect external display connected via HDMI

    On a Thinkpad S430 with HD4000 integrated graphics, an external display connected via a HDMI cable is not detected at all when using Windows. The system is fully updated as of the time of posting this message, both via the Lenovo Update tool as well as Windows update.
    The Intel driver version is 8.15.10.2696. It appears that this is the latest version, since it does not offer an update when I try to auto-update it via Device Manager.
    NB: I am running Ubuntu 12.04 with kernel 3.4.0 on the same machine, and the external display works perfectly fine with this software configuration.
    Hence I think that it's very likely that this is a Windows-specific driver issue.
    Would Lenovo happen to have a driver update in the works? Alternatively, I will be thankful for any suggestions about possible resolution of this problem.

    skn2011 wrote:
    My Macbook Pro notbook 13.3" does not detect external display throught it's mini display port to HDMI connector when connected to Sony Bravia 32" LCD TV.Can anyone help me get the answer as i tried reading everywhere on internet and none does not seems to work.Please help me out guys.
    Are you using the Apple adaptor or a 3rd party

  • T410 running Windows 7 not detecting HP LP3065 connected with DisplayPort to DVI Dual-Link

    I am running Windows 7 on a Thinkpad T410.  I have an HP LP3065 monitor connected to it using an Accell DisplayPort to DVI Dual-Link adapter.  Windows 7 does not detect the monitor.  The NVIDIA drivers are up to date and I have tried powering the Accell adaptor with multiple USB ports.  I do not know if there is a problem with the adaptor or if Windows 7 is just unable to see the monitor with this combination.
    Could someone please let me know how I can diagnose this?  Thank you in advance.

    Similar issue: my T410 does not detect LG W2343T-PF (1920x1080) connected with DisplayPort to DVI Dual-Link Cable
    T410 with integrated graphics
    Type: 2516
    BIOS: 1.09 (2010-01-07)
    Embedded Controller: 1.03
    Windows7 Pro x64
    drivers are up-to-date with Lenovo
    the same DP to DVI Dual-link cable was able to connect to Dell 1280x1024 monitor in my office.
    Maybe I should used single link DVI cable.
    I will do more testing this evening
    (1) to test the connection on difference 1280x1024 monitor this evening at my home
    (2) try different cable - something link DP to DVI Single-link cable
    Meanwhile, just want to check others experient working with DisplayPort on T410/T510 as I really need to use dual external mornitor with my T410.

  • Windows doesnt detect SoundBlaster wireless tactic 3d v2.0

    Hello
    Even though I said in the title that windows doesnt detect it that isnt entirely correct but it would have cluttered the title even further so today I bought this headset and im trying to get it to work so a few informations would help:
    I use windows 64 bit windows 7 home edition
    The wireless adapter and the headset have no problem conecting to each other, I also hear a little ding in those headsets once the connection is established, by either restarting the pc, plugging the wireless connecter off and on again or pressing a couple of seconds on the connect or the mute button.
    In the auto updater from creative I can see both the headset and the adapter and it says that all drivers are uptodate.
    Now to the problems:
    In the device manager off windows I can see the SB Tactic 3D Rage Wireless however it has an exclamation mark next to it, but trying to update the driver there tells me it is already updated.
    I do not see the headset in the windows audiosettings, however if I use a different headset and change the volume with the wireless one the volume does change(of cause of the other headset, the wireless one never plays any sounds besides the connection and the sound change)
    Hope someone could help me there, the headset feels quite nice would be great if it would work

    Im sorry but trying to edit main post seems to not work when I try to click on save nothing happens :/ so heres an update:
    so apparently it now tells me that 100.84 mb of drivers are missing I assume thats almost all of them, without me touching anything related to headsets in the meanwhile, I had that happen before so I doubt that reinstalling the drivers will help but Im going to do that later anyway - however I will have to do it manually because if I press accept on the liscence agreement it sends me to an empty Internet explorer page(which is not my main browser)

  • Hi, when connecting my ipad air to itunes it doesnt detect the device it also doesnt sync what do I do?

    when connecting my ipad air to itunes it doesnt detect the device it also doesnt sync what do I do? I have tryed turning the device on ect also downloaded itunes several times but have had no luck.

    Hey daisycartwright1
    For more troubleshooting steps to take, check out the following document:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Welcome to Apple Support Communities!
    Cheers,
    Delgadoh

  • Quick detection of failed tcp connection

    I apologize for asking this question, sense I know variants of it are asked often, but none of the standard solutions I read about seem to apply to my situation.
    I have an application acting as a server for a client application written by another organization. Most of our communication is done via UDP, but the client application insists on a TCP connection which usually hangs out unused. I need to be able to detect when this TCP connection goes down. Sense I am only writing the server I can't implement a heartbeat or similar method which requires server and client to work together. Likewise doing a read and waiting for a -1 doesn’t work, as the reads seem to time out and fail even when the network is not down due to the client not sending anything to be read across the TCP connection.
    So far the best solution I have come up with is to intermittently write a 0 byte when I believe there is a network error (i.e. when our udp communication stops) and capture an exception when this fails. This method does work, but I have to wait for the exception which can take 2-3 minutes from when I kill the network to occur. I would prefer for the exception to occur sooner then that if possible. I've tried setting the SO_TIMOUT bit, but sense write is usually non-blocking this doesn’t have any affect. Is there some other method of controlling how long it takes for the tcp socket to fail if it doesn’t get an ack back?
    I have also thought of other methods of doing this, including always killing the TCP socket the moment UDP fails, or have my serverSocket listen for and accept any reconnect attempts, then killing the old socket once the new one is established. However both methods seem like imperfect workarounds, I would rather be able to use the absence of ACKs to detect that the TCP has stopped working.
    And allow me to offer a preemptive thank you for your help.

    Is there some other method of controlling how long it takes for the tcp socket to fail if it doesn’t get an ack back?The traditional Berkeley socket API offers no way to adjust the timeout.
    Some operating systems (perhaps even most major ones) have system-global settings for it - registry, /dev/somemagicname, ndd(1), etc. Google for something like windows adjust tcp timeout or solaris modify tcp retransmission or some such. Be aware that you would be setting a parameter that will affect all programs running on that system. Mostly I would just accept the 2-minute timeout; that's just the way things are.

  • HT4972 I AM USING WINDOWS XP. WHEN I AM CONNECTING MY IPOD TOUCH  MODEL NO. MC 008LL TO MY PC ,CHARGING INDICATION IS COMING BUT NEITHER THE WINDOWS NOR THE LATEST VERSION I TUNE DETECTING MY IPOD. IT IS ALSO NOT SHOWING IN I TUNE WINDOWS.

    I AM USING WINDOWS XP. WHEN I AM CONNECTING MY IPOD TOUCH  MODEL NO. MC 008LL TO MY PC ,CHARGING INDICATION IS COMING BUT NEITHER THE WINDOWS NOR THE LATEST VERSION I TUNE 10.6.3 DETECTING MY IPOD. IT IS ALSO NOT SHOWING IN I TUNE WINDOWS."DEVICE LIST" IS NOT DISPLAYING IN LEFT HAND SIDE WINDOW OF I TUNE. BEFORE IT WAS WORKING IN ITUNES 9 AND I WAS USING IT. BUT NOW IT IS  NOT DETECTIN AT ALL. SO PLEASE HELP ME WHAT TO DO?

    Have you tried here:
    iOS: Device not recognized in iTunes for Windows

  • Anyone else having an issue with TCP connections using iCloud for Windows?

    Hi,
    Before I asked this question, I did wait to see if any related questions came up, but none did, so I submit it now.
    On my admittedly older laptop running Windows 7 64b Home, I've run into difficulties with the iCloud for Windows app to the extent that I had to uninstall it.
    It would that, as my laptop was running, in the background, iCloudServices.exe would endlessly iterate TCP connections, which, while not actively sending or receiving any data, after some hours would number over 100 instances, taking up resources, and grinding my laptop's WiFi connection to a grindingly slow pace. I ended up, within the app, turning off everything, iCloud Drive and Photos, (I never used bookmarks), but still this would continue to occur.
    I contacted Apple Support, explaining what was going on, and they stated they only dealt with IOS and gave me a Microsoft Support number. When I called Microsoft support, I came more and more to the realization that the issue was specifically with the iCloud for Windows app, as that was the only software that was endlessly creating and not closing TCP connections as it was. How was Microsoft supposed to solve an issue with Apple code?
    So I called Apple back, whereupon they insisted it was a Microsoft issue. I explained other cloud services installed on the same computer were not having the same issue, it was unique to ICloudServices.exe. They stated they only dealt with IOS. I stated I purchased an iPad Air less than 7 months ago, and was trying to run iCloud in support of that.  They again stated they only dealt with IOS, and suggested I again try Microsoft. I asked them if it was reasonable to expect Microsoft to solve issues with Apple code? They said regardless, there was zero support offered for anything having to do with Windows, and all I could do was uninstall the app, which I did, though that did not feel very satisfactory to me. My thinking is, if Apple writes a Windows app in support of their hardware, they should offer support for it.
    Anyway, I was just wondering, is this an issue unique to me? or have others experienced a similar issue? I found this issue by opening the Windows Resource Monitor, looking under the Networking tab, and scrolling through the TCP Connections section to find 100+ concurrent iCloudServices.exe instances listed, whereas even Chrome, with multiple tabs and extensions, topped out at around 20.
    My one month old Desktop, DYI, sports a solid Asus 1150 MoBo, i7-4790k cpu, 16GB Ram, and an EVGA GTX 970 video card. I list some specs only to illustrate this computer has no hardware issues in comparison to my long in tooth laptop. On this desktop, running Win 8.1 Pro 64b,  at least as many, identifiably Apple, background service TCP connections are created even compared to Chrome, regardless of many tabs being open, many extensions, and even some related apps. Adobe does not even come close, though I run the full CC subscription. On this new computer, running Windows 8.1 Pro 64b, there are currently over 50 TCP connections and loopbacks that do not identify themselves, with just a - for the Image, and PID. With the experience on my laptop, I wonder how many of these are generated by Apple software, if not specifically iCloud software?
    The frustrating aspect of these connections is they seem in no way active, While the Chrome and Adobe connections can be seen to be transferring data, as long as I am not running iTunes, or so have my iPad actually plugged in, it seems 99% of the time these iCloudServices.exe connections are just taking up ports, neither sending nor receiving any data discernable to me under the Processes with Network Activity, or Network Activity lists, both displayed in the same window as the TCP Connections in the Windows Resource Monitor.
    Though I am fairly ignorant as regards coding, it seems as if there is no call to close a connection, very specifically, iCloudServices.exe, when it is no longer needed, and the next time a connection is needed, a new one is opened, rather than accessing the one previously opened. The only other reason I could imagine this might be occurring is if my Norton Internet Security software might mask and/or block the port after a certain time of inactivity.
    Anyone out there have any ideas or advice about this? Thanks in advance.

    Thanks jared,
    I'm still dealing with this issue through Apple. Some time after I posted this, I contacted Apple again. They did start a case up for me, as I was experiencing the same behavior on two different machines, with two different versions of Windows.
    So far it remains unsolved. I've logged iClouds for Windows on my desktop, which is brand new, then logged for awhile after completely uninstalling Norton Security Suite, depending on the Microsoft security for some time, and finally logged after I uninstalled iCloud for Windows, restarted, installed a clean download, and connected using a completely different test account, which Apple set up for me. None of this made any difference. Looking at the logs, it seems every 10 minutes, iCloudServices.exe creates a new TCP connection to confirm I'm using less than 5GB on iCloud, (which I am by a good margin, using less than 2GB), it seems this connection is not closed, and when the next iteration rolls around 10 minutes later, a new TCP connection is created. I come very close to having 6 TCP connections created per hour, until I restart my computer. This works out to... 6 x 24 = 144/day.
    Perhaps the article you posted will shed some further light on this. I'm thinking seeing the state of the connection through netstats, at the least, could help.
    For the last week, I've been putting a hold on further logging, as Apple wants me to create a new user account on one of my computers, install iCloud for Windows there, and log it running in the other account. This however basically means I cannot use my computer for a fair number of hours, and I've been busy enough with work the past week that I haven't the time or energy to afford to set this up and run it. I've had need of my computers too much for the past week.

  • Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    Hey, my ipad is disabled and i cant open. i tried connecting it with itunes in recovery mode to restore it but it wont work it doesnt show and options itunes doesnt detect my ipad in recovery mode. what do i do know? please help!!!

    If you followed these instructions and you were unable to enter recovery mode, I'm still leaning toward a hardware problem.  Also, since you have IOS-7, read this.  It might help.

  • TS1363 My iTunes and Laptop doesnt detect my iPhone, But it is charging when connected to the Laptop?

    My iTunes and Laptop doesnt detect my iPhone, But it is charging when connected to the Laptop?

    Try troubleshooting steps mentioned here: http://support.apple.com/kb/TS1538

  • Camera Window pops the message "Cannot detect Camera, Check connection to camera, then retry"

    I have installed Camera Window in my Windows 8.1 laptop. The moment I invoke Camera window, there is a popup which shows . "Cannot detect Camera, Check connection to camera, then retry. I do not have this issue in my iPAD though. Has anyone come across this issue..?Thanks

    zebah_alfred,
    Please make sure you have the latest versions of the software installed by downloading them from our website.  Please click HERE to go to the download page.
     1.  Are you connecting to your computer with a USB cable or over Wi-Fi?
     2.  Are there any other devices connected to your computer other than the camera, aside from a keyboard and mouse of course?
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • TCP connection for DHCP failover frequently are broken in Solaris 10

    Hi
    We have two dhcp servers which are installed in Solaris 10 and set to a failover pair. Currently, we can find that tcp connection for dhcp failover protocol are frequently broken. It looks like that primary dhcp server initiatively send FIN message to secondary one but in general, this tcp connection should always keep alive. On the other hand, the tcp connection can not completely be closed right now which FIN_WAIT_2 status in Primary one and CLOSE_WAIT status in secondary would last for a long time.
    Will Solaris 10 cause this fault? Is it a known bug in OS?
    OS info:
    -bash-3.00$ cat /etc/release
    Solaris 10 5/08 s10s_u5wos_10 SPARC
    Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 24 March 2008
    -bash-3.00$
    -bash-3.00$
    -bash-3.00$ uname -a
    SunOS edns1 5.10 Generic_142900-03 sun4v sparc SUNW,Netra-T5220
    TCP connection info:
    Primary DHCP Server:
    2012 08 29 03:41:43
    PING 172.25.6.137: 56 data bytes 64 bytes from edns2 (172.25.6.137): icmp_seq=0. time=0.678 ms
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *idns1           195.26.151.151   3 u   45 1024  377     0.75   -0.071    0.05
    +idns2           195.26.151.151   3 u  162 1024  377     0.93    0.169    0.08
    clusternode1-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
    +clusternode2-pr idns1            4 u  406 1024  376     0.49   -0.154   15.12
    172.25.6.133.647 172.25.6.137.58107 49640 0 49640 0 ESTABLISHED
    172.25.6.133.647 *.* 0 0 49152 0 LISTEN
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    2012 08 29 03:41:47
    PING 172.25.6.137: 56 data bytes 64 bytes from edns2 (172.25.6.137): icmp_seq=0. time=0.535 ms
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *idns1           195.26.151.151   3 u   49 1024  377     0.75   -0.071    0.05
    +idns2           195.26.151.151   3 u  166 1024  377     0.93    0.169    0.08
    clusternode1-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
    +clusternode2-pr idns1            4 u  410 1024  376     0.49   -0.154   15.12
    172.25.6.133.647 172.25.6.137.58107 49640 0 49640 0 FIN_WAIT_2
    172.25.6.133.647 *.* 0 0 49152 0 LISTEN
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Secondary DHCP Server:
    2012 08 29 03:41:41
    PING 172.25.6.133: 56 data bytes 64 bytes from edns1 (172.25.6.133): icmp_seq=0. time=1.26 ms
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *idns1           195.26.151.151   3 u  450 1024  377     0.92   -0.067    0.06
    +idns2           195.26.151.151   3 u  552 1024  377     0.96    0.237    0.08
    +clusternode1-pr idns1            4 u  360 1024  377     1.85   -0.528    1.51
    clusternode2-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
    172.25.6.137.647 *.* 0 0 49152 0 LISTEN
    172.25.6.137.58107 172.25.6.133.647 49640 0 49640 0 ESTABLISHED
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    2012 08 29 03:41:45
    PING 172.25.6.133: 56 data bytes 64 bytes from edns1 (172.25.6.133): icmp_seq=0. time=1.36 ms
    remote refid st t when poll reach delay offset disp
    ==============================================================================
    *idns1           195.26.151.151   3 u  454 1024  377     0.92   -0.067    0.06
    +idns2           195.26.151.151   3 u  556 1024  377     0.96    0.237    0.08
    +clusternode1-pr idns1            4 u  364 1024  377     1.85   -0.528    1.51
    clusternode2-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
    172.25.6.137.647 *.* 0 0 49152 0 LISTEN
    172.25.6.137.58107 172.25.6.133.647 49640 0 49640 0 CLOSE_WAIT
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Thanks!

    Thanks, but had found a previous discussion with this hint and applied it.
    svccfg -s sendmail listprop shows config /local_only = false
    Yes, I would really love to fix the fault, but what I would really like is some hints as to how to debug ports under svc control.

  • Sun App Server 9.1 on Windows - Many TCP connections

    Hi,
    I have a problem with Sun Application Server 9.1 running on Windows (both XP and 2003). When I start a server I see in netstat many (about 50) TCP connections established within server process like this:
    java.exe:3616     TCP     localhost:1687     localhost:1688     ESTABLISHED     
    java.exe:3616     TCP     localhost:1688     localhost:1687     ESTABLISHED     
    All these connections are in pairs (port and port + 1) like the example above.
    What does it mean and why the server creates these connections? How can I decrease number of them?
    (The server is without any application, it is pure installation.)
    Thank you for your reply!
    Jiri Vitinger

    Yes, it works.
    I suppose you are able to install, but can not start Access Manager?
    There is a description at
    http://wiki.java.net/bin/view/OpenPortal/PortalInstallInstructions#Install_Access_Manager_and_Direc
    I had to follow the instructions for glassfish, although I'm using AppServer 9.1.
    Replaced the values of the according lines in AMConfig.properties like this:
    com.iplanet.security.SecureRandomFactoryImpl=com.iplanet.am.util.SecureRandomFactoryImpl com.iplanet.security.SSLSocketFactoryImpl=netscape.ldap.factory.JSSESocketFactory com.iplanet.security.encryptor=com.iplanet.services.util.JCEEncryption
    Regards,
    Juergen

  • Windows fails to detect mouse if ipod is already connected at bootup.

    If sometines I miss on disconnecting the ipod before booting the pc *with windows xp media center, then it doesnt detect the mouse and the only solution is to unplug ipod and restart system again.
    I am posting it to see if anybody faced this earlier.

    It slows down your computer as it's an extra disk and capacity that Windows has to process on start up, you just have to unplug your ipod while booting as it thinks that you are trying to boot the system from your ipod itself.
    The second is probably a USB power problem, in which your USB port cant supply enough power for both devices to run.
    Try using it in another port if you have one, or use one at a time (difficult i know!)

  • Why doesn't window 8.1 detect itunes once iphone is connected?

    why doesn't window 8.1 detect itunes once iphone is connected?

    Hi Z M T,
    Thanks for visiting Apple Support Communities.
    I recommend starting with the troubleshooting steps in this article if your iPhone is not detected by iTunes for Windows:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Best,
    Jeremy

Maybe you are looking for

  • How can I only see my mms in my message inbox?

    Bought my iPhone 4 in november 2010, since then I have never deleted a message. So my question is, if its possible to get only the mms to go through them to see if i want to save some of them before i delete everything. help ?

  • Photoshop edits not saved in iPhoto

    I've set up Photoshop CS4 as my external editor in iPhoto, and this has been working well for quite a while. I usually edit in Photoshop and save over the original (both jpeg files) in iPhoto. However, today I noticed that my edited work was not show

  • How to resolve Error Message WWC-41400 with OID and Portal

    Hello. I followed the guidelines to use Oracle's OID as the login server for my 9iAS-based Portal. The login names and passwords were successfully copied from the Portal to the users.lfif file (visible in Oracle Directory Manager). I tested the login

  • Please help me with my phone, i am willing to pay you.

    I have like 200 games and programs as total on my phone.. And it lags very much when i start it.. and i cannot delete any games or program becaouse it have duplicated to 2 or very many programs!!!! its on my memory card.. and i dont know how to forma

  • Error creating new domain (probably because of incomplete install)

    Hi! I've installed BPEL PM without problems on a server where AS already runs. I only had some problems with Step 2: Run the Integration Repository Creation Assistant on the Database. Since I couldn't run the bat files, I manually created shchema and