Preventing Server Timeout on a Socket

I have been questioning my solution to preventing server timeout and was wondering if anyone knows of a better way to do it. I am using a socket to connect to a ftp server which times out the connection after 3 minutes of inactivity. I have tried using the setKeepAlive(true) method for the Socket, but it does not prevent the server from timing me out after 3 minutes of inactivity. I have no idea why it doesn't or what keep alive even means now. My solution was to create a special Thread once the connection is made and have it send a blank command every minute until the Socket is no longer connected to the server. This works fine, but it seems like a workaround rather then a graceful solution. Does anyone have any ideas or input on this? Thank you.

I think that is a good idea. But just one more
question... What does the Socket method
setKeepAlive(true) do (and saying that, "it turns
keep alive on" is not a valid answer... Sun)?There are number of problems with setKeepAlive.
The basic idea is this. It is not so much keeping the socket connection alive as detecting whether it is dead.
But the problems with this are that it is basically a hack. It's not part of TCP and basically as far as I understand sends fake packets to the other side to fool the otherside into retransmitting the last packet.
But it may not work because as stated it's not an official part of TCP and I think the message may well be viewed from the other side as erroneous junk because your side already acknowleged the reciept of the original packet so a request for retransmission would appear to be a request that was old and got hung up somewhere.
Sometimes it works but not very much so.

Similar Messages

  • Prevent screen timeout in Flash 10.1 for Android

    Is there a way (in AS3 or the HTML container) to prevent the phone's screen from turning off while playing a game in Flash?  I'm working on some game prototypes for Flash Player 10.1 on Android 2.2, and it seems that as long as I'm touching / clicking the screen it doesn't time out, but if I haven't clicked for a while or if I'm making something controlled mainly by the accelerometer, the phone's standard timeout for the screen kicks in.
    Apps developed to run on Android have a way of preventing the screen's timeout from kicking in for accelerometer-based games, though I haven't found a way to do this for an in-the-browser Flash game.  At the moment designing something for the accelerometer is pointless, since without touch interaction the screen's going to turn off in 30 seconds or however the user's screen timeout is set.

    On a similar note, how do you prevent XMLSocket timeout, when the screen saver turns on? Our application preriodically sends keep-alive messages to the server, but apparently when Android screen saver turns on, the Flash stops running even when the  browser with embedded app is up, and the socket connection times out, so the user does not get new notifications...

  • Connections dropped, DNS and server timeouts from new Lenovo with 802.11n

    New Airport Extreme, works great with Windows XP machine ethernetted into it, and also with a MacBook with wireless-N.
    But my brand new Lenovo T60P with wireless-N is flakey with the Airport. It connects fine with a 100% signal, using the WPA2-PSK / AES setting on the Lenovo (WPA2 Personal security in 802.11n b/g compatibility mode on the Airport). Most of the time it works quite well.
    But very frequently (every five minutes?) one of two things will happen: with the signal still registering fine in the taskbar (and in the laptop's wireless "status" utility), it will become unable to locate any website, including google.com, etc., and refreshes of currently-displayed websites yield server timeouts. The browser (firefox) gives a DNS timeout message. The second thing is just your basic dropped wireless connection. It will reconnect by itself after a while.
    Any advice is hugely appreciated. It ***** to "upgrade" to headaches! (Ha! the forum software doesn't like a synonym for "vaccuums". Apologies to the nuns at Apple for my potty mouth.)

    New Airport Extreme, works great with Windows XP
    machine ethernetted into it, and also with a MacBook
    with wireless-N.
    But my brand new Lenovo T60P with wireless-N is
    flakey with the Airport. It connects fine with a
    100% signal, using the WPA2-PSK / AES setting on the
    Lenovo (WPA2 Personal security in 802.11n b/g
    compatibility mode on the Airport). Most of the time
    it works quite well.
    But very frequently (every five minutes?) one of two
    things will happen: with the signal still registering
    fine in the taskbar (and in the laptop's wireless
    "status" utility), it will become unable to locate
    any website, including google.com, etc., and
    refreshes of currently-displayed websites yield
    server timeouts. The browser (firefox) gives a DNS
    timeout message. The second thing is just your basic
    dropped wireless connection. It will reconnect by
    itself after a while.
    Any advice is hugely appreciated. It ***** to
    "upgrade" to headaches! (Ha! the forum software
    doesn't like a synonym for "vaccuums". Apologies to
    the nuns at Apple for my potty mouth.)
    What you experienced is not a surprise as 802.11n is not a standard yet and each manufacturer has developed it own "pre-n" version. Right now Apple (base station) will work with Apple (notebooks), Dlink (routers) will work with Dlink (PCMCIA cards), etc.
    Lenovo is no different. You can expect 80-90% compatibility, but not 100%. To expect cross-vendor 100% compatibility, you will likely have to wait until 802.11n is "approved" and then the firmware is updated on all devices.

  • "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQ

    Hi,
    I am getting the above error when trying to connect to a database located on remote database. if the database is on same system no problem.
    any clue???????pls help me.

    The full error msg is as follows and the back ground of the problem is decribed below...pls help me out.
    I have written some perl programs to be called by java to execute some database related tasks. My database located at a remote win2K server and database is MSSql and my programs are executing on WIN2k server. The problem is with perl talking to remote database...the following error is displaying...
    "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied."

  • [Model Nodes] What prevents Server Parts to be assignedthere ?!:?

    Hi,
    I want to have a separate node to provide a dedicated service,
    and therefore when I start my environment server and declared that
    node as ModelNode, with 'client' disabled, i still can't assign to it
    my server partition.
    And if I declare it as regular node, the installation of the application
    failed if the node is not online.
    What choice do I have ?
    What prevents that ModelNode, client disabled, to host server partition ?!,
    j-paul gabrielli
    sema dts

    Therefore, how to remotely start a node manager ? :-p
    j-p
    -----Message d'origine-----
    De: John Parks [mailto:jparkss1.com]
    Date: vendredi 15 septembre 2000 20:07
    À: Jean-Paul.Gabriellisema.fr
    Cc: 'Forte Users'
    Objet: Re: (forte-users) [Model Nodes] What prevents Server Parts to be
    assigned there ?!:?
    Jean-Paul,
    The ModelNode is a client node by definiton, no matter what properties you
    change. I've previously asked for an enhancement to allow a
    model node to be a
    server node, but I don't expect much to happen. To install
    server applications
    to several nodes, you have to make sure that the node manager on
    each node is
    active. There really is no built-in support for distributing
    applications in
    mass to servers like there is for clients (using the model node feature).
    Regards,
    John Parks
    S1 Corporation
    Jean-Paul Gabrielli wrote:
    Hi,
    I want to have a separate node to provide a dedicated service,
    and therefore when I start my environment server and declared that
    node as ModelNode, with 'client' disabled, i still can't assign to it
    my server partition.
    And if I declare it as regular node, the installation of the application
    failed if the node is not online.
    What choice do I have ?
    What prevents that ModelNode, client disabled, to host serverpartition ?!,
    j-paul gabrielli
    sema dts
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com--
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • N8 and ovi map problem,server timeout

    just got my new device and when try to update map application to have maps on the phone I alwys get the following eroor..server timeout...try again...I have tried all evening and same message again and again..I have Ovi suit version 2,2,1,23..It´s a new phone and it´s not working,I have tried on both windows XP and on Windows 7..I have reset the phone many times and if I don´t get this to work fast I will definately have my okd phone back and sell this one,hve read about other phones and they all experience the same problem with the latsest Ovi update...so what will I do???????..any suggestion,tried with version 2.1.1.1 and same problem...It´s a brand new phone and is not working..come on..
    Solved!
    Go to Solution.

    Nokia's solution to update maps is exclusively using OVI Suite.
    Ovi Suite is a tremendous piece of software: never checked before any release, always buggy.
    You are lucky if you do not need maps because PC Suite is reliable.
    You are cursed if you need maps...
    Any upgrade of maps ends up in problems!
    Today if failed again, I am used to it....
    I will stop any use of this Nokia's E72 (it is their product, not mine) as soon as my contract with my provider will end!
    My today's provider will also be punished by seeing me away definitively at the same time. And I will get away as many people as possible from Nokia!!!!!!!!!!!!!!!!!!!!!
    I hate this product and this company: They are not concerned by their customers, they are just good at taking the money and run away.
    That's Ok for me, you will be out of this market within 3 years with such an irrespect of your customers. -10% of market share / year is 0% in 3 years from now on. And, yes, it is too late: You did it again with the N8 (read above)!
    Have a nice day!

  • Server Timeout for Authentication server

    Hi all
    Does anybody know how to increase server timeout more than 30 sec, may be 60 sec.
    Our LDAP structure very deep, 5 levels - I mean login accounts placed on the 5th level from the top.
    I configureed web-authentication via LDAP, for test I created new OU and login is succesfull.
    Then when real account with real OU tried to login, there always timeout error on debug window of WLC.
    So I am sure it is because of deep tree of AD. It is configured long time ago and this structure already used by some applications so almost impossible to change this structure.
    So only way I see to increase server timeout.
    Best regards.

    Hi Toleukhan,
    it looks like AAA issue to me. I am moving this to security for faster response.
    thanks,
    Vinay

  • How to set pop3 server timeout in Mail?

    The pop3 server that I am using for receiving my mails responds quite slowly. So, I have to increase the server timeout flag, but I couldn't find it in the preferences of Mail. Have you got any ideas about that?
    Thanks...

    You should probalby post your question in the Mail and Address Book forums:
    http://discussions.apple.com/forum.jspa?forumID=753

  • Server Timeout Error

    I hope someone can help.
    When trying to publish to the ME gallery a small album of 7 pictures I get a server timeout error. My computer is also not updating new pictures to already published albums and my son is having trouble uploading youtube videos.
    I have contacted mobile-me support and Apple support.
    I have repaired disk permissions and keychain. My last conversation it was thought it might be an ISP problem. Cox cable reported that my upload speed was 750,000.
    I have my computer connected to an airport extreme by hardwire. I have made a new user account on my computer and was able to upload 7 pictures without problems. I was also able to upload these same 7 pictures using my macbook on the wireless network through the airport extreme without an issue.
    The best that I can figure out is that there must be a setting unique to my account that is causing the difficulty.
    Any help would be appreacited

    Please provide more information about your system.
    What version of SAP BPC?
    Do you have a configuration with 2 application Servers using an NLB?
    Usually this happen in case if you have this kind of configuration and NLB is not using affinity single (in other cases is named pesistency - on).
    Regards
    Sorin Radulescu

  • Server Timeout

    Could anyone tell me why the WebLogic Server timeout after idle for few days?
    I cannot access the admin console after idle for few days.
    Thanks.
    Kammau

    Hi Ruben,
    have you tried the SDN Search on "bsp timeout"? I think this Topic could be usefull: How to deal the timeout session in BSP application.
    Regards
    Gregor

  • Email Address Server Timeout

    Hi,
    I'm having a problem sending email to a single email address from France to the UK.
    All other addresses work fine.
    The email address is correct (I have tried both writing a new message, as well as 'reply' to recieved mail)
    I have tried both html and plain text format.
    In each case I receive a 'server timeout' error message 24-48hrs after sending the message.
    I have contacted the recipient, and his IT Dept. advised me to contact my ISP who could be blocking their address.
    My ISP is Orange, but they have been less than helpful, telling me that Mac mail is 'outside their expertise'.
    I am using IMAP mail account, and everything seems OK except for this one email address.
    Thanks in advance for any thoughts or advice.

    I found the issue. I kept getting 5.7.1 invalid address errors, no matter how I configured things. Then, I removed the smtp username and password and set the receiver to allow anonymous. My error changed to 5.1.0 sender denied. I'm not positive the errors
    are accurate, but from that point I knew where the problem was coming from. The only way I could get it to work was to use this format for the smtp username
    [email protected] instead of domain\user.

  • 500 server timeout error

    Hi
    Its urgent!!
    Our Production portal was working perfect. Suddenly the iviews is showing 500 server timeout error
    Error: -5
    Version: 7000
    Component: ICM
    Module: icxxthr_mt.c
    Line: 2698
    Error Tag: {-}
    Detail: Connection to partner timed out after 60s
    The transaction iviews are working fine as of now. ESS iview, identity management are showing timed out error.
    please help.
    regards,
    Sasha.
    Edited by: Sasha on Feb 17, 2008 8:35 AM

    Hi Sasha,
    While i am running the web reports with huge sets of data i am getting the error like below. Could you please help me out on this issue.
    Connection timeout(-5)
    Error: -5
    Version: 6040
    Component: ICM
    Module: icxxthr_mt.c
    Line: 2603
    Server:.........
    Detail: Connection to partner timed out after 60s
    It is very urgent for me, could you please helpme out.
    Thanks in advance.
    Best Regards,
    Hari

  • Any advice as to why I'm getting Email Server Timeouts for my 2 email accounts (ports 993 & 110)?

    Email Server Timeouts for my two email accounts:
    For the time periods April 12-21, 2012 and April 27-present, 2012 I have been unable to access my email account at ***** through the pop server. The server returns them message "The connection to the server “*****” on port 110 timed out."
    I have also had the same problem accessing my gmail account via IMAP, receiving the following message: "The connection to the server “imap.gmail.com” on port 993 timed out."
    I used the Connection Doctor program connected to Apple Mail and received the following information:
    Mail was able to connect to the internet.
    Gmail: Could not connect to this Gmail IMAP server. Check your network connection and that you entered the correct information in the Account preferences. Also verify that the server supports SSL. If it does not, deselect the "Use SSL" checkbox in the Advanced tab of Account preferences.
    BayanMail: Could not connect to this POP server. Check your network connection and that you entered the correct information in the Account preferences.
    SMTP smtp.gmail.com:*****@gmail.com Connection and login to server succeeded.
    *****Mail SMTP server: Connection to server succeeded; login not required.
    Can you help me with this problem?
    I am running OS 10.6.8
    Mail 4.5

    The Motorola Droid Razr has a camera that sets up the shot to take a quality picture so its not in an instant. My wife also doesn't like that feature but I believe in the settings you can disable some of those functions. You have to read the owners manual for optimal settings.
    Now email sent from the native app that came with the phone is totally useless. If you have a email service like Gmail or Yahoo Mail or Outlook Email go to the google play store and use the stand alone app. I can tell you that when we email photos the best email app is GMail or Microsoft Outlook Mail.
    I take a picture and then select Gmail and it attaches and sends with great speed and Outlook works this way also since the attachment size is greater than other email programs. Your local isp or even exchange server will not send such large attachments
    And I agree those apps preloaded should be able to be removed. If I buy my phone I should say what I want on it. But alas unless you do some other methods you can find on the web those dumb apps will remain.
    Good Luck

  • Apparent server timeout when running Webi report

    Hi,
    when running a Webi report in BOXIr2 SP4 we are getting the follwing error which appears to indicate that the reports is hitting the Webi Report Server timeout:
    "The Web Intelligence Java Report Panel cannot connect to the server. Close the report panel and try to connect again or see your BusinessObjects administrator. (Error: WIJ 20002)"
    However we get the error after approximately 5 minutes, but the Webi Report Server connection timeouts are all set to 60 mniutes.
    What other settings could be causing this 5 minute problem? The same report works fine when a shorter period of time (and so a smaller selection of data) is used in the parameters.
    thanks
    Keith

    Hi,
    Do you have a Windows Server?
    If so, please find the below information, you need to implement this on the server box.:
    Swap Timeout
    This is the amount of time before a user session WebI document would be removed. In other words, this controls the flushing interval of WebI temporary files. When you are in the Java Report Panel and you leave it idle for more then 5 minutes (Default), you will notice that you will no longer be able to save your
    WebI report into the CMS or your report will take longer to generate. This is because every 5 minutes the WebI cache is cleared so those temporary files would have to be regenerated by refreshing the document before you can actually save the document.
    The temporary files can be found in
    ..\BusinessObjects Enterprise 11.5\Data\ServerName\
    ServerName.Web_IntelligenceReportServer\sessions\SessionID\
    In order to modify this timeout you need to change the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite
    11.5\default\WebIntelligence\Server\Admin\SwapTimeOut
    Please let me know if this works for you.
    Thanks,
    Madhu.

  • Re: What is the relationship between the JTA Server Timeout and

    Two things. The transaction timeout is set when the transaction starts. When are you setting the timeout, and where are you starting the transaction?
              There is a bug in 6.0 SP1. The EJB subsystem always sets the transaction timeout. If you don't specify anything in your descriptor. It sets the timeout to 30 seconds. However, if you
              change the JTA default to 60 seconds, the EJB container won't see this change. This is fixed in our next minor release.
              -- Rob
              Tom Gerber wrote:
              > What is the relationship between the JTA Server Timeout and an EJB's <transcation-timeout-seconds> parameter?
              >
              > Does the EJB's timeout have to be >= the servers to take effect?
              >
              > We tried setting the timeout in the XML file to 60 seconds but the transaction still timed out after 30 seconds or so which makes me believe the server timeout overrides the EJB's timeout.
              >
              > Is this correct behavior?
              >
              > We are on WL 6.0 sp1
              >
              > Thanks
              >
              > Tom
              

    Sorry, you cannot query for known bugs yet.
              Work is in progress :)
              Kumar
              Tom Gerber wrote:
              > Is there a place on the WebSupport site for WebLogic that I can query
              > for know issues for WL 6 sp1?
              >
              > I tried the Find Solutions but didn't find much.
              >
              > Thanks
              >
              > Rob Woollen wrote:
              >
              > > Two things. The transaction timeout is set when the transaction starts. When are you setting the timeout, and where are you starting the transaction?
              > >
              > > There is a bug in 6.0 SP1. The EJB subsystem always sets the transaction timeout. If you don't specify anything in your descriptor. It sets the timeout to 30 seconds. However, if you
              > > change the JTA default to 60 seconds, the EJB container won't see this change. This is fixed in our next minor release.
              > >
              > > -- Rob
              > >
              > > Tom Gerber wrote:
              > >
              > >> What is the relationship between the JTA Server Timeout and an EJB's <transcation-timeout-seconds> parameter?
              > >>
              > >> Does the EJB's timeout have to be >= the servers to take effect?
              > >>
              > >> We tried setting the timeout in the XML file to 60 seconds but the transaction still timed out after 30 seconds or so which makes me believe the server timeout overrides the EJB's timeout.
              > >>
              > >> Is this correct behavior?
              > >>
              > >> We are on WL 6.0 sp1
              > >>
              > >> Thanks
              > >>
              > >> Tom
              > >
              

Maybe you are looking for

  • "The application Safari has unexpectedly quit." / "Archive and Install"

    ...The system and other applications have not been affected. Would you like to submit a bug report to Apple? I was working on my eMac last night when all of a sudden Safari shut down. I tried to open it again and I kept getting the above error messag

  • Blue Screen on Domain controllers after Updates

    After patching our Domain controllers (virtual on ESXi 5.5 U2) recently we started getting Blue screens and reboots. Other changes in our environment around this time include enabling vshield drivers and scanning with Trend Micro. I have removed patc

  • Strange behavior from this forum?

    Hello all, did anybody ever experience this? I subscribes to a post because I wanted to see people's responses. I have now received three messages telling me that there are new posts on that entry. When I go to the post there ain't any. The other wei

  • User exit for mb02

    Hi friends,   For MB02 Trans i need a user exit. I found out that the following exit can be used. Mainly MBCF0002 as for MB01 Trans.But,when I placed a breakpoint in this exit.It is not triggering. I tried other exits also.But none of the exit is tri

  • Re6500 connecting to Ipad Personal Hotspot --- disconnected.

    Im trying to connect my re6500 to my ipad person hostspot.    I select  the ipad hotspot  (verizon) in Site Survey and connect.  After several seconds the web page refreshs then on Basic setting page it says status Disconnected. I have no problems us