• 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
OpenTransport
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenTransport


  • Subject: OpenTransport
  • From: Tony Hansson <email@hidden>
  • Date: Mon, 16 Jun 2008 08:45:08 +0200

Hi

Having problems to keep socket connections alive in OpenTransport in 10.5.2 and 10.5.3.
The connection dissapears afther its been idle for about 30 minutes or more.

Our code hs been working, and is workig fine on any Mac OS version  except 10.5.2 and later

Our only solution for our cutomers is to downgrade to 10.5.0.

I tried adding this to the existing code, but it don't seem to have any effect.

Yes, we don't use OT in our new app's, but we still support app's that uses OT.

OTResult _OT_SetKeepAliveOption( EndpointRef ep )
{
	TOptMgmt      optReq;
	TKeepAliveOpt opt;

	optReq.flags		= T_NEGOTIATE;
	optReq.opt.len	= sizeof (TKeepAliveOpt);
	optReq.opt.buf	= (unsigned char *) &opt;

	opt.len			= sizeof (TKeepAliveOpt);
	opt.level		= INET_TCP;
	opt.name		= TCP_KEEPALIVE;
	opt.status	= 0;
	opt.tcpKeepAliveOn	= 1;
	opt.tcpKeepAliveTimer	= (30 * 1000);

	return OTOptionManagement(ep, &optReq, nil);
}




Tony

Cognitive AB, Stelvio Bokföring Lön Ekonomi för Macintosh
http://www.ct.se
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OpenTransport
      • From: Quinn <email@hidden>
  • Prev by Date: Re: NSURLDownload and resuming a download
  • Next by Date: Upload large file using HTTP request
  • Previous by thread: NETLINK like APIs to monitor NIC activity
  • Next by thread: Re: OpenTransport
  • Index(es):
    • Date
    • Thread