Roserver superTcp doesn t work after timeout. Bug?

as you can see, events are sent via TROSCServerWorker.DispatchEvent, what is personal for each client’s connection.

try to play with Server.BlockingEvents value

Can you explain me what do BlockingEvents?

BlockingEvents :

Hi!

I have an other Big problem……
I have server in a pc and Client in other pc with Autoreconnect = true

when connect client to server i got
OnconnectClient on server and works perfectly
if i close client i got
OnDisconnectClient and works perfectly
but if i remove lan cable in client and when disconnect it i replug it i got:

OnConnectClient and After OnDisconnectClient….

Correct steps are:

OnDisconnectClient and after OnConnectClient

Any ideas???

Hi

Sometimes i got Connection Closed Gracefully. After onclientconnect. It seem an old sdk problem

it does OnConnectClient after this?

yes but i have
onconnectClient and after i got
ondisconnectClient with Connection Closed Gracefully error
and remain connected

it is logic error
i must have ondisconnectClient before OnConnectClient

can you show call stacks for these two cases (when OnConnectClient and OnDisconnectClient events are raised)?

{32AA172C-EA0E-4140-86EB-49C93BADD22F}connect

Unplug Lan Cable and wait that client disconnect
After i replug cable

{32AA172C-EA0E-4140-86EB-49C93BADD22F}connect
{32AA172C-EA0E-4140-86EB-49C93BADD22F}disconnect

How to see i got connect before than disconnect and in this situation i can control my application because i create struct to send data when i got connect and destroy it when i disconnect it.
In this case i have my all big structure destroyed but client is connected and i can t send data back

under call stack I mean content of call stack window in debugger (IDE->View->Debug Windows->Call Stack)

I have normal disconnect after connect

can you show OnConnect callstack too, pls?

ok so i got
onConnect
OnConnect
OnDisconnect

i do stack for all

as I see, you have attached 1st screenshot twice.


after OnDisconnect is fired it should again reconnect because you have

is it correct?

Hi!

I got 1st Screenshot twice because it happen.
first time connect it normally
after i unplug lan and wait that Client Disconnect
I replug it
I have onConnect second time 2nd screenshot

after 2nd OnConnect i got Disconnect but client is connected

can you launch Process Explorer and check what socket was closed at last Disconnect?

open your server’s properties and check TCP/IP tab.

Hi!

Sorry for delay….

It seem that when unplug and replug lan create a new connection because i have 2 connections after that i replug lan cable (2nd image) and after disconnect first connection.
1st image is when it is connected first time

2nd image when i unplug and replug lan cable (It seem that create a new connection)

3th Image after some time i have onDisconnectClient but close first connection

Ok it seem that problem that when unplag lan cable and replug it Create new connection and delete old one. For this reason i got 2 OnConnectedClient and After OnDisconnectClient with same GUID. If you have retry = true it crash.

It possible to fix it?

Hi,

it describes what OnDisconnect is fired after OnConnect.

what do you mean under crash? what exception is raised and call stack for it?

Hi
I don t know but client freeze