Skip to content

Python Client Failing after 2 or more consecutive runs #66

Answered by wwwehr
emanuel-skai asked this question in Q&A
Discussion options

You must be logged in to vote

The root problem was that the client was getting destroyed and a new client object established with the same node key.

I suspect that the destructor of a python client instance does not have enough logic to dismantle all the network setup in memory/object/process space - thus - when a new client with same nodekey is created, a conflict occurs and routing of messaging in the network is then broken.

Suggested actions:

  • We would prefer if the client was reusable to serve many userkeys so that we can avoid network resource delays (handshakes) or exhaustion of internal ports, etc.

Workaround:

  • Use a unique nodekey for each client instance creation

cc: @Davetbutler

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@wwwehr
Comment options

@wwwehr
Comment options

Comment options

You must be logged in to vote
2 replies
@wwwehr
Comment options

@wwwehr
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@emanuel-skai
Comment options

@wwwehr
Comment options

Answer selected by emanuel-skai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants