Changeset b57db73 for benchmark/io/http/worker.cfa
- Timestamp:
- Jan 16, 2021, 5:20:59 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0197418
- Parents:
- 35ea4f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/worker.cfa
r35ea4f3 rb57db73 97 97 } 98 98 99 if( !options.file_cache.path ) { 100 if( options.log ) { 101 sout | "=== File Not Found (" | nonl; 102 write(sout, file, name_size); 103 sout | ") ==="; 104 } 105 answer_error(fd, E405); 106 continue REQUEST; 107 } 108 99 109 // Get the fd from the file cache 100 110 int ans_fd; … … 104 114 // If we can't find the file, return 404 105 115 if( ans_fd < 0 ) { 106 sout | "=== File Not Found (" | nonl; 107 write(sout, file, name_size); 108 sout | ") ==="; 116 if( options.log ) { 117 sout | "=== File Not Found (" | nonl; 118 write(sout, file, name_size); 119 sout | ") ==="; 120 } 109 121 answer_error(fd, E404); 110 122 continue REQUEST;
Note: See TracChangeset
for help on using the changeset viewer.