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:

  • Running multiple time the same docker image
  • Linux installation on docker over windows host machine
  • How to execute host's Docker command from container?
  • cAdvisor: How to run it with a remote docker API?
  • Sporadic 503s from specified ports
  • Docker Cloud Service Discovery Two Containers
    • 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

  • Gtk cannot display window while using docker
  • Unknown Blob when pulling microsoft/xxxxx
  • Accessing CLI apps from one docker container in another container
  • Docker exec rm not working
  • How to read and write to mounted volume without running as root?
  • Can't start working with docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.