Ignore:
Timestamp:
Dec 12, 2017, 4:09:47 PM (6 years ago)
Author:
djay
Message:

Add status_code key to the lenv section to support returning a specific HTTP error code from the service code. Fix callback invocation to support inputs arrays at step 1 and 2. Fix issue with cpu usage. Fix issue with mapserver publication when an input is optional. Fix callback invocation at step 7 in case the service has failed on the HPC side.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c

    r859 r860  
    316316  if(passThrough!=NULL && targetHosts!=NULL){
    317317    char *tmp=zStrdup(passThrough->value);
    318     char *token, *saveptr;
    319     token = strtok_r (tmp, ",", &saveptr);
    320318    int i;
    321319    for(i=0;i<handle->nb;i++){
    322320      if(strstr(targetHosts->value,"*")!=NULL || isProtectedHost(targetHosts->value,handle->ihandle[i].url)==1){
     321        char *token, *saveptr;
     322        token = strtok_r (tmp, ",", &saveptr);
    323323        while (token != NULL){
    324324          int length=strlen(token)+6;
     
    338338            AddMissingHeaderEntry(&handle->ihandle[i],token,tmpMap->value);
    339339          }
    340           free(tmp1);
    341340          if(handle->ihandle[i].header!=NULL)
    342341            curl_easy_setopt(handle->ihandle[i].handle,CURLOPT_HTTPHEADER,handle->ihandle[i].header);
     342          free(tmp1);
    343343          cnt+=1;
    344344          token = strtok_r (NULL, ",", &saveptr);
     
    520520    if(curl_multi_perform(hInternet->handle, &still_running)==CURLM_OK)
    521521      if(still_running){
    522         struct timespec tv;
    523         tv.tv_sec = 0;
    524         tv.tv_nsec = (long) 100;
    525         nanosleep(&tv, &tv);
     522        zSleep(10);
    526523      }
    527524  }while(still_running); 
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png