Changeset 9715567 for benchmark/io/http/http_ring.cpp
- Timestamp:
- Jan 28, 2021, 9:47:29 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:
- eeb4866
- Parents:
- 761a246
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/io/http/http_ring.cpp
r761a246 r9715567 277 277 278 278 // Handle a new request, results for getting an cqe while in the REQUESTING state 279 void newrequest(struct io_uring * ring, int re t) {279 void newrequest(struct io_uring * ring, int res) { 280 280 // Check errors 281 if( re t< 0 ) {282 int err = -re t;281 if( res < 0 ) { 282 int err = -res; 283 283 switch(err) { 284 284 case EPIPE: … … 304 304 305 305 // Is this an EOF 306 if(re t== 0) {306 if(res == 0) { 307 307 // Yes, close the connection 308 308 this->close(0);
Note: See TracChangeset
for help on using the changeset viewer.