RE: Missing T_GODATA
RE: Missing T_GODATA
- Subject: RE: Missing T_GODATA
- From: "Larry Gerndt" <email@hidden>
- Date: Thu, 4 Apr 2002 22:54:05 -0800
- Thread-topic: macnetworkprog digest, Vol 3 #89 - 9 msgs
>
I am sometimes not getting a T_GODATA event in my
>
notifier proc after getting a kOTFlowErr from an OTSnd.
>
The usual behavior is:
>
>
1) I OTSnd till getting kOTFlowErr 2) I get a T_GODATA
>
in my notifier, to which I respond with OTSnd once in
>
the notifier, then signal the original thread to
>
continue. 3) original thread does OTSnd till getting
>
kOTFlowErr 4) wait forever, never getting another
>
T_GODATA in my notifier
That is *exactly* what I observed about 6 months ago,
when trying to run my OTMP code on OS X. It works great
on 9, but on OS X it was exhibiting that behavior. (OTMP
is an OT wrapper written by Quinn which lets you call
OT synchronously, from within MP tasks.). On
OS X, all the calls map to straight OT calls, so theoretically
it should run on both 9 and X. But when I saw the above
problem, I figured there must be a bug in OTMP that
only manifests on OS X. But apparently it's not an OTMP
but, it's OT bug. I am very glad to see
confirmation of this phenomenah, if only to know it was
nothing I was doing wrong. So thanks for posting it.
If your curious, my solution was to use the socket API
when running on OS X. This meant forking my code.
If you're considering doing this, I can offer one bit of
encouragement: the socket API is really clean and
simple, and I'm very glad to have learned how to
use it. As Sam Vaughn, who had similar problems, and who
recommended me to make this change put it: the socket
API is clean and it just works. No muss, no fuss.
Larry Gerndt
Pixion
http://www.pixion.com
mailto:email@hidden
925-467-5350
_______________________________________________
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.