On T_LISTEN event: OTListen returns kOTNoData
On T_LISTEN event: OTListen returns kOTNoData
- Subject: On T_LISTEN event: OTListen returns kOTNoData
- From: Rob Dye <email@hidden>
- Date: Wed, 15 Jan 2003 18:10:22 -0600
Under 10.2.3:
In my OTNotifierNotifierProc on a T_LISTEN event, I sometimes get a
kOTNoDataErr error from the OTListen() call that I make.
This seems to only happen when I get lots of connections very close together
in time. (My scenario is an HTTP server and browsers tend to fire off lots
of simultaneous requests for the various elements of a page.)
Why would I get called with the T_LISTEN event if there is nothing there?
My notifier proc calls OTListen once for each T_LISTEN, puts the resulting
TCall on an OTLIFO, then triggers an event to wake up another thread that
services that OTLIFO. It is common that several calls are on the LIFO before
it gets serviced.
It does not appear that I am ever reaching the qlen of 5 on my listener
endpoint.
It also appears that the client requests end up hanging, one for each error
I get on a OTListen. I don't know how to send them a disconnect without a
successful OTListen.
Subsequent connection requests can arrive and succeed even after this has
happened several times.
Thanks,
Rob Dye
National Instruments
_______________________________________________
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.