Ignore:
Timestamp:
Feb 5, 2018, 1:19:13 PM (6 years ago)
Author:
djay
Message:

Change the default ZOO-Kernel behavior, if an input has been passed by reference, the ZOO-Service will receive a cache_file map rather than the value field which was usually returned, same for array value apply. To use the previous behavior, one can add "memory=load" to the main section of the main.cfg file. Update ZOO-Services for using this new field if available.

File:
1 edited

Legend:

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

    r839 r863  
    901901  char* tmpValue;
    902902  size_t dwRead;
     903  maps *tmpConf=createMaps("main");
     904  tmpConf->content=createMap("memory","load");
    903905  JS_MaybeGC(cx);
    904906  hInternet=InternetOpen("ZooWPSClient\0",
     
    929931#endif
    930932    InternetOpenUrl(&hInternet,hInternet.waitingRequests[hInternet.nb],body,strlen(body),
    931                     INTERNET_FLAG_NO_CACHE_WRITE,0);   
     933                    INTERNET_FLAG_NO_CACHE_WRITE,0,tmpConf);   
    932934    processDownloads(&hInternet);
    933935    free(body);
     
    940942        }
    941943        InternetOpenUrl(&hInternet,hInternet.waitingRequests[hInternet.nb],NULL,0,
    942                         INTERNET_FLAG_NO_CACHE_WRITE,0);
     944                        INTERNET_FLAG_NO_CACHE_WRITE,0,tmpConf);
    943945        processDownloads(&hInternet);
    944946      }else{
    945947        char *body=JSValToChar(cx,&argv[2]);
    946948        InternetOpenUrl(&hInternet,hInternet.waitingRequests[hInternet.nb],body,strlen(body),
    947                         INTERNET_FLAG_NO_CACHE_WRITE,0);
     949                        INTERNET_FLAG_NO_CACHE_WRITE,0,tmpConf);
    948950        processDownloads(&hInternet);
    949951        free(body);
     
    951953    }else{
    952954      InternetOpenUrl(&hInternet,hInternet.waitingRequests[hInternet.nb],NULL,0,
    953                       INTERNET_FLAG_NO_CACHE_WRITE,0);
     955                      INTERNET_FLAG_NO_CACHE_WRITE,0,tmpConf);
    954956      processDownloads(&hInternet);
    955957    }
     
    972974  if(argc>=2)
    973975    free(method);
     976  freeMaps(&tmpConf);
     977  free(tmpConf);
    974978  InternetCloseHandle(&hInternet);
    975979  JS_MaybeGC(cx);
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