cloudsuite icon indicating copy to clipboard operation
cloudsuite copied to clipboard

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

Open jiaweixiao opened this issue 4 years ago • 2 comments

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 avatar Sep 02 '20 02:09 jiaweixiao

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

Thanks

jiaweixiao avatar Sep 02 '20 03:09 jiaweixiao

Hi there, Can I work on this issue?

chapaith avatar Sep 10 '22 12:09 chapaith