You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importprocbridgeaspbdefhandler(method, args):
ifmethod=="initialtest1":
return"Initial test 1 triggered"ifmethod=="initialtest2":
return"Initial test 2 triggered"ifmethod=="echo":
returnargsifmethod=="ping":
return"pong"if__name__=='__main__':
port=8000s=pb.Server('0.0.0.0', port, handler)
s.start(daemon=False)
print("Procbridge server is on {}...".format(port))
Run it several time or put it in a loop.
You should get a similar result:
Hi, @astatio, thanks for the detailed description.
I took a quick look and it appears that something blocked and timed out at the 5 second mark. But I don't have a development environment at hand right now, can you help to confirm whether the blocking occurs on the server side or the client side? For example, you can set a breakpoint at procbridge/__init__.py#L126 and procbridge/__init__.py#L135 in the Python server-side program. The former is the location where the client request is received, and the latter is the location where the response data is sent.
Waiting for a server's response seems to normally take around ~5000ms.
How to reproduce:
I have tested this with the following scenario:
Client side (Kotlin(JVM)):
Server side (Python):
Run it several time or put it in a loop.
You should get a similar result:
The text was updated successfully, but these errors were encountered: