Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update accAPI.cpp to allow multiple uda servers connection #19

Closed

Conversation

DorisBDR
Copy link
Collaborator

@DorisBDR DorisBDR commented Dec 1, 2023

retrieve the server host and port from environment to have a proper comaprison

retrieve the server host and port from environment to have a proper comaprison
@DorisBDR DorisBDR linked an issue Dec 1, 2023 that may be closed by this pull request
@DorisBDR DorisBDR requested review from roddrok and jholloc December 1, 2023 07:07
@@ -702,7 +702,7 @@ void putIdamServerPort(int port)
{
ENVIRONMENT* environment = getIdamClientEnvironment();
int old_port = port;
environment->server_port = port; // UDA server service port number
environment->server_port = environment->server_port; // UDA server service port number
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely this should be?

int old_port = environment->server_port;
environment->server_port = port;

This code change is currently setting environment->server_port to itself?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure i was not fully wake up this mornign. thanks

@jholloc
Copy link
Collaborator

jholloc commented Dec 5, 2023

I've incorporated these changes in the the release/2.8.0 branch. Please use this branch for any future testing.

@DorisBDR
Copy link
Collaborator Author

DorisBDR commented Dec 5, 2023

i found another issue...this one is a little bit tricky to solve but very annoying for us. if we have a new client (e.g. MINT) and two uda servers one new and one old then we can't get data because there is an issue with the protocol_version...which is not correct (as it assumes that the protocol_version is the same for everyone...it is for some reason a global static variable on the client side).

we have added now the support on the client to allow multiple servers connections
@DorisBDR
Copy link
Collaborator Author

DorisBDR commented Jan 9, 2024

commits done on our side to support multiple servers (including different versions), waiting for the build to check that things are ok

we use signal_status to send some information to the client about on-going requests
@olivhoenen
Copy link
Collaborator

@jholloc can you please look at bringing in 7e6d5c0 and 5255a1b so we can get closer to a 2.8.0 release?

I get that this PR may no target the correct branch (main, shall probably be develop or release/2.8.0 instead, --> will need to be clarified in guidelines for developers in the future).

@jholloc
Copy link
Collaborator

jholloc commented Jun 24, 2024

This has been merged into release/2.8.0

@jholloc jholloc closed this Jun 24, 2024
@jholloc jholloc deleted the 18-uda-idam-does-not-mutliple-server-connections branch June 24, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uda idam does not mutliple server connections...
3 participants