ConnectDetach waits...

I’ve a subtle problem.
A server application simply creates a channel and waits forever for
pulses:

while (true) { MsgReceivePulse(…)… };

Another application, the client, connects to this server, perform
something, and then ConnectDetach the coid.
The actual problem is that: ConnectDetach waits 10 seconds before
unlocking. I’ve tried to remove everything within ConnectAttach/Detach
but with no speed reduction.

If I kill the server, the client immediately unlocks.

In the documentation I read that ConnectDetach should not wait.
Maybe I’ve to pass some flags to ChannelCreate? (actually I use
a vanilla 0).

Cheers


Wave++

Try _NTO_CHF_UNBLOCK, _NTO_CHF_COID_DISCONNECT and _NTO_CHF_DISCONNECT as
flags in ChannelCreate. Make sure you handle the pulses that are sent to
your server when the client detaches.

Rex

“Wave++” <wavexx@apexmail.com> wrote in message
news:9rknqh$q8q$1@inn.qnx.com

I’ve a subtle problem.
A server application simply creates a channel and waits forever for
pulses:

while (true) { MsgReceivePulse(…)… };

Another application, the client, connects to this server, perform
something, and then ConnectDetach the coid.
The actual problem is that: ConnectDetach waits 10 seconds before
unlocking. I’ve tried to remove everything within ConnectAttach/Detach
but with no speed reduction.

If I kill the server, the client immediately unlocks.

In the documentation I read that ConnectDetach should not wait.
Maybe I’ve to pass some flags to ChannelCreate? (actually I use
a vanilla 0).

Cheers


Wave++