Dll hang caused by setting TROSuperTCPChannel to false

Using Olympia for session management requires a supertcpchannel, correct?

When IIS tries to shutdown an ISAPI dll with a TROSuperTCPChannel that is there for talking to Olympia the dll hangs on shutdown at the line where it calls fw.WaitFor in unit uROBaseSuperChannel in procedure TROBaseSuperChannel.SetInactive.

This also happens only if the TROSuperTCPChannel is set to false.

The destructor sets the TROBaseSuperTCPChannel.Active to false thus initiating the noted behavior.

To replicate:
Run the client exe without debugging.
Run the w3wp.exe with the -debug switch as the host of the server dll.
In the client.exe enter the website where the dll is running and press Get Server Time.
Press q in the console window to shutdown.
Set two breakpoints in the dll’s WebModuleDestroy procedure of Unit1. One at the ROSuperTCPChannel1.Active := false; line and the other on the line after that.
Observe that the first breakpoint gets hit but not the second.

Here is a sample test project if that helps. SuperTCPChannelTest.zip (2.5 MB)

Any update on this?

you are right.

I can reproduce this issue.

Thanks, logged as bugs://78526

Is there a way I can find the status of this bug?

it isn’t fixed yet

bugs://78526 got closed with status fixed.

Did that fix make it into the Build 9.3.105.1351 or will it be in the next beta?

it will be in next beta

It fixed it in the test app but it is still hanging in our production app.

can you recreate a test project, pls?
You can attach it here or send directly to support@

I somehow had Delphi pointing to a source folder for .1337 even though I had .1355 installed. It works correctly after pointing it to the .1355 source.

1 Like