Ignore:
Timestamp:
Aug 16, 2018, 8:00:56 AM (6 years ago)
Author:
djay
Message:

Fixes for supporting properly the memory=protect which force the ZOO-Kernel to not store any downloaded files in memory. Add footer to the HPC support. Fix the autotools to build service_json and sshapi only when required so, when HPC support is activated, this also avoid adding too much dependencies at compilation time. Store md5 of the downloaded files to avoid uploading on HPC server the same file more than once, in case the md5 correspond.

File:
1 edited

Legend:

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

    r871 r877  
    521521  int l = 0;
    522522  map* version=getMapFromMaps(*main_conf,"main","rversion");
     523  map* memory=getMapFromMaps(*main_conf,"main","memory");
    523524  int vid=getVersionId(version->value);
    524525  for (k=0; k < nodes->nodeNr; k++)
     
    788789                                                          INTERNET_OPEN_TYPE_PRECONFIG,
    789790                                                          NULL, NULL, 0);
     791#ifndef WIN32
    790792                                if (!CHECK_INET_HANDLE (bInternet))
    791793                                  fprintf (stderr,
    792794                                           "WARNING : bInternet handle failed to initialize");
     795#endif
    793796                                bInternet.waitingRequests[0] =
    794797                                  strdup ((char *) val);
     
    11091112              }
    11101113            }
     1114          if(memory!=NULL && strncasecmp(memory->value,"load",4)!=0)
     1115            if(getMap(tmpmaps->content,"to_load")==NULL){
     1116              addToMap(tmpmaps->content,"to_load","false");
     1117            }
    11111118          {
    11121119            map* test=getMap(tmpmaps->content,"value");
     
    11891196    }
    11901197  }
     1198  return 0;
    11911199}
    11921200
     
    19701978          addToMap(res->content,name,token1);
    19711979        free(name);
     1980        name=NULL;
    19721981        i=0;
    19731982      }
    19741983      token1 = strtok_r (NULL, "=", &saveptr1);
    19751984    }
     1985    if(name!=NULL)
     1986      free(name);
    19761987    token = strtok_r (NULL, "; ", &saveptr);
    19771988  }
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