Xmlrpc communication between my computer and UR10e robot will be unexpected behavior

Steps to reproduce:
execute my C++ application on my computer(Ubuntu18.04) communicates with the UR10e robot with xmlrpc by using rpc_factory(“xmlrpc”,“192.168.1.10:50000”)

my app has the variable “val_B” and write 1 to val_B , wait val_B to become 2 , break when the value is updated to 2 by the robot and write 3 to val_B

my UR program runs main loop that waits val_B to become 1 and write val_B to 2 and wait val_B to become 3

Expected Behavior:
this program is always running ,never stops

Actual Behavior:
After a moment(within 1 hour) , my C++ app continue waits val_B to become2 even though UR programs completed writing val_B to 2
Moreover , I just temporary created UR program just read val_B like below and it shows still old value.

global app = rpc_factory(“xmlrpc”,“192.168.1.10:50000”)
global val = app.readB()

Will the high frequent call of remote procedure using app cause issue like this?

Workaround Suggestion:

Robot Serial Number:
20195001980

Affected Version(s):
URSoftware 5.11.1.108318

There were few bugfixes in XML-RPC over the years.
Could you update your robot to 5.22, and try with that version?

There are limits in some xml-rpc servers to number of calls from single client (for example C implementation: User manual for XML-RPC for C/C++)
Make sure those parameters are correctly configured on your server. Second app is creating new connection, so it’s not this exact issue.
Alternatively you can try to make small python client to check how server behaves instead of connecting from UR robot.