• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OTRcv when disconnected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OTRcv when disconnected


  • Subject: Re: OTRcv when disconnected
  • From: Jason Linhart <email@hidden>
  • Date: Mon, 23 Sep 2002 12:50:45 -0400

On 9/23/02 11:25 AM David T. Greenfield
(email@hidden) wrote:

>So, is there some way (shouldn't there be some way?) to detect that the
>connection is lost? If not, is it reasonable to shorten the deadline to
>something significantly sooner than the 10 minutes it's taking OT to
>report the error and, if so, what is a reasonable general deadline for
>this sort of situation?

The way the operating system is dealing with lost connections seems
correct to me, or as close as we are likely to get. If you want a timeout
you should implement one in your code.

There may be some cases where the OS should give you the disconnect
sooner, a lost modem connection might be one, but in the general case you
want to wait as long as you possibly can in the hope that the connection
can be reestablished. In theory the modem can redial and resume the
connection, which is a rare setup but it is how my dialup connection
works.

I wouldn't want the OS dropping connections that could still come back
online. If you have user interface reasons for wanting a shorter timeout
it is simple enough to do that in your own code, but if I wanted a longer
timeout I would be stuck. Thus the OS should err on the side of the
longer timeout.

Jason

-----------------
email@hidden
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: OTRcv when disconnected
      • From: Wade Tregaskis <email@hidden>
    • Re: OTRcv when disconnected
      • From: Quinn <email@hidden>
  • Prev by Date: Re: Determining "default" address from Rendezvous resolve
  • Next by Date: Re: OTRcv when disconnected
  • Previous by thread: Re: CFSocketDataCallBack buffer size
  • Next by thread: Re: OTRcv when disconnected
  • Index(es):
    • Date
    • Thread