Changeset c3ee5f3 for benchmark/io/http/main.cfa
- Timestamp:
- Jan 8, 2021, 5:20:16 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:
- 35fd2c4
- Parents:
- 390fb02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/main.cfa
r390fb02 rc3ee5f3 46 46 } 47 47 48 extern void init_protocol(void); 49 extern void deinit_protocol(void); 50 48 51 //============================================================================================= 49 52 // Main … … 56 59 //=================== 57 60 // Open Files 58 printf("Filling cache from %s\n", path); 59 fill_cache( path ); 61 if (FileExperiment == options.experiment.type) { 62 printf("Filling cache from %s\n", path); 63 fill_cache( path ); 64 } 60 65 61 66 //=================== … … 79 84 ret = bind( server_fd, (struct sockaddr *)&address, sizeof(address) ); 80 85 if(ret < 0) { 81 if(errno == 98) {86 if(errno == EADDRINUSE) { 82 87 if(waited == 0) { 83 88 printf("Waiting for port\n"); … … 108 113 #endif 109 114 options.clopts.instance = &cl; 115 116 init_protocol(); 110 117 111 118 int pipe_cnt = options.clopts.nworkers * 2; … … 162 169 } 163 170 free(fds); 171 172 deinit_protocol(); 164 173 } 165 174
Note: See TracChangeset
for help on using the changeset viewer.