OpenTransport
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