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

data-caching loader with '-u' option shows "UDP not working" #264

Open
jiaweixiao opened this issue Sep 2, 2020 · 2 comments
Open

data-caching loader with '-u' option shows "UDP not working" #264

jiaweixiao opened this issue Sep 2, 2020 · 2 comments

Comments

@jiaweixiao
Copy link

hello,

I' going to test on data-caching loader with UDP protocol ('-u' option), but it shows "UDP not working".

Then I dig into the function sendRequest in file "request.c"
and find that udpSendRequest is already implemented but executes after exit(-1).

void sendRequest(struct request* request) {
  ...
  struct request* sendRequest = request;
  if(request->connection->protocol == TCP_MODE){
    tcpSendRequest(sendRequest);
  } else if(request->connection->protocol == UDP_MODE){
    printf("UDP not working\n");
    exit(-1);
    udpSendRequest(sendRequest);
  } else {
    printf("Undefined protocol\n");
    exit(-1);
  }
  ...
}

If I try to common out exit(-1) and run loader with '-u' option, the program will give Segmentation fault error.

Does this mean that UDP protocol is not supported in data-caching load tester?

@jiaweixiao
Copy link
Author

p.s.
With UDP protocol it also shows "Unknown error code" and exits.
The call chain is receiveResponse -> udpReceiveResponse -> processResponse -> checkError.

Thanks

@chapaith
Copy link

Hi there, Can I work on this issue?

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

No branches or pull requests

2 participants