ERROR : HTTP request response time

I’ll explain a bit my situation, i actually have an architecture of a client+gateway+server, i’m trying to send a dataset from the client side to the server side, and it needs to get through the gateway to get encrypted, so that it’ll be stored syphered. I’m using HElib (Homomorphic Encryption lib).

The client side is with Angular2 and the backend is with GoLang, and i am using a docker container for each service, means that i’m having a:

  • docker cp the content of a folder
  • Does a RHEL7 docker container need subscription?
  • Cucumber on Travis CI container
  • Can not pull docker image from private repo when using Minikube
  • Xt error: Can't open display, if using default DISPLAY
  • Where should live docker volumes on the host?
    • Client container

    • Gateway container

    • Server container

    • Encryption container

    • Decryption container

    The issue i’m facing now is this one, when i’m sending the dataset from the client to the server, it gets through the gateway (everything is fine till now), and it called the encryption container to encrypt each data from the dataset, the problem that i’m having is that the encryption container exits with code 139, and sometimes it showes me an error like this before exiting: fftRep: inconsistent use.

    The thing is that when i put a brecking point after each request, everypthing is working, means that the problem is from the numerous requests sent to the encryption container, forcing him to stop.

    Here is my Angular2 Code:
    The breaking point i put is in line :

    for(var i = 0;i<this.DataSet.length;i++){
    
            var myTrainingData = new TrainingData;
    
              myTrainingData.sepal_length = String(this.DataSet[i][0]);
              myTrainingData.sepal_width = String(this.DataSet[i][1]);
              myTrainingData.petal_length =String(this.DataSet[i][2]);
              myTrainingData.petal_width = String(this.DataSet[i][3]);
              myTrainingData.species = String(this.DataSet[i][4]);
    
              if(this.treatState == true){
                  this.surveyService.sendTrainingData(myTrainingData)
                  .subscribe(
                        data => {
                            this.treatState = false;
                            this.loading = false;
                                if(data.Success){
                              this.alertService.success("Training done !"+i);
                              console.log(i);
                                }
                                else{
                                this.alertService.error("Error in training phase !");
                              this.loading = false;
                                }
    
                          },
    
                      error => {
                          this.alertService.error(error);
                            this.loading = false;
                      });
                      this.treatState = true;
                    }
    

    What i need is to make a request wait till the previous one is treated and the client got the response “success” back before launching it.

    I put the var “treatState” to temp the launch of a request till the previous one is finished, but it doesn’t seem to work as expected.

    If someone can help, i’ll be thankful.

    Have a nice day

  • How can I get a container running again, that has stopped now but was running before
  • Why isn't docker commit saving data in my mongo database container?
  • Insert transaction from demo does not work for me (docker kartoza)
  • Connect shipyard with existing docker images?
  • How to open/run YML compose file?
  • How to update war files in a docker tomcat container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.