Changeset 6c53a93 for benchmark/io/http/protocol.cfa
- Timestamp:
- Jan 5, 2022, 10:39:39 AM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 0ac728b
- Parents:
- e2853eb (diff), 6111f1f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
benchmark/io/http/protocol.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/protocol.cfa
re2853eb r6c53a93 332 332 wait(this.f); 333 333 334 // Did something crazy happen?335 if(this.f.result > this.len) {336 mutex(serr) serr | "SPLICE IN spliced too much!";337 return error(this.res, -ERANGE);338 }339 340 334 // Something failed? 341 335 if(this.f.result < 0) { … … 351 345 return error(this.res, -ECONNRESET); 352 346 } 347 } 348 349 // Did something crazy happen? 350 if(this.f.result > this.len) { 351 mutex(serr) serr | "SPLICE IN spliced too much!"; 352 return error(this.res, -ERANGE); 353 353 } 354 354 … … 401 401 wait(this.f); 402 402 403 // Did something crazy happen?404 if(this.f.result > this.len) {405 mutex(serr) serr | "SPLICE OUT spliced too much!";406 return error(this.res, -ERANGE);407 }408 409 403 // Something failed? 410 404 if(this.f.result < 0) { … … 420 414 return error(this, -ECONNRESET); 421 415 } 416 } 417 418 // Did something crazy happen? 419 if(this.f.result > this.len) { 420 mutex(serr) serr | "SPLICE OUT spliced too much!" | this.f.result | ">" | this.len; 421 return error(this.res, -ERANGE); 422 422 } 423 423 … … 544 544 const char * original_http_msgs[] = { 545 545 "HTTP/1.1 200 OK\nServer: HttpForall\nDate: %s \nContent-Type: text/plain\nContent-Length: ", 546 "HTTP/1.1 200 OK\r\nServer: HttpForall\r\n Date\r\nConnection: keep-alive\r\nContent-Length: 15\r\nContent-Type: text/html: %s \r\n\r\nHello, World!\r\n",546 "HTTP/1.1 200 OK\r\nServer: HttpForall\r\nConnection: keep-alive\r\nContent-Length: 15\r\nContent-Type: text/html\r\nDate: %s \r\n\r\nHello, World!\r\n", 547 547 "HTTP/1.1 400 Bad Request\nServer: HttpForall\nDate: %s \nContent-Type: text/plain\nContent-Length: 0 \n\n", 548 548 "HTTP/1.1 404 Not Found\nServer: HttpForall\nDate: %s \nContent-Type: text/plain\nContent-Length: 0 \n\n",
Note:
See TracChangeset
for help on using the changeset viewer.