ayumax / ObjectDeliverer

ObjectDeliverer is a data transmission / reception library for Unreal Engine (C ++, Blueprint).
https://www.unrealengine.com/marketplace/ja/slug/objectdeliverer
MIT License
157 stars 36 forks source link

TCP/IP Client disconnects after 30-60 seconds #35

Closed markusstephanides closed 4 years ago

markusstephanides commented 4 years ago

Hello!

I'm using a really basic network client using ObjectDeliverer with the TCP/IP Client protocol and the PacketRuleSizeBody rule. It all works really well (I let the game send the player position 10 times per second to the server) until the client disconnects after some time without any error or message.

Would appreciate help!

EDIT: I quickly made an empty node.js TCP server just to make sure the problem is on the client side, and it really is. The connection disconnects with the RESET flag after some time...

markusstephanides commented 4 years ago

Fixed the issue: I haven't declared the UObjectDelivererManager as UPROPERTY() in my class so after some time the UObjectDelivererManager was being destroyed by the GC and the socket disconnected. Now it's working perfectly!