- Timestamp:
- Nov 21, 2017, 10:24:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/server_internal.c
r850 r854 26 26 #include "service_internal.h" 27 27 #include "response_print.h" 28 #include "service_callback.h" 28 29 #include "mimetypes.h" 29 30 #ifndef WIN32 … … 444 445 if(cSize!=NULL){ 445 446 length=atoi(cSize->value); 446 } 447 }else 448 length=strlen(cValue->value); 447 449 writeFile(val,cValue->value,length); 448 450 setMapArray(cMap,"cache_file",k,val); … … 466 468 free(val); 467 469 } 470 addToMap(inputs->content,"byValue","true"); 468 471 } 469 472 inputs=inputs->next; … … 980 983 if(isRunning(conf,pid)>0){ 981 984 if(strncasecmp(req,"GetResult",strlen(req))==0){ 982 errorException (conf, _("The result for the requested JobID has not yet been generated. (1)"),985 errorException (conf, _("The result for the requested JobID has not yet been generated. The service is currently running."), 983 986 "ResultNotReady", pid); 984 987 return; … … 1008 1011 printf("%s",result); 1009 1012 fflush(stdout); 1013 free(sid); 1010 1014 freeMap(&statusInfo); 1011 1015 free(statusInfo); 1016 free(result); 1012 1017 return; 1013 1018 }else{ 1014 errorException (conf, _("The result for the requested JobID has not yet been generated. (2)"),1019 errorException (conf, _("The result for the requested JobID has not yet been generated. The service ends but it still needs to produce the outputs."), 1015 1020 "ResultNotReady", pid); 1016 1021 freeMap(&statusInfo); … … 1104 1109 removeService(conf,pid); 1105 1110 #endif 1111 /* 1112 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 1113 invokeCallback(conf,NULL,NULL,7,1); 1114 fprintf(stderr,"************************* %s %d \n\n",__FILE__,__LINE__); 1115 */ 1106 1116 map* statusInfo=createMap("JobID",pid); 1107 1117 addToMap(statusInfo,"Status","Dismissed");
Note: See TracChangeset
for help on using the changeset viewer.