102 } |
102 } |
103 if (fcntl(req->connection->fd, F_SETFL, flags & ~O_NONBLOCK) != 0) { |
103 if (fcntl(req->connection->fd, F_SETFL, flags & ~O_NONBLOCK) != 0) { |
104 // error |
104 // error |
105 } |
105 } |
106 |
106 |
107 write(req->connection->fd, buf, len); |
107 req->connection->write(req->connection, buf, len); |
108 write(req->connection->fd, msg.ptr, msg.length); |
108 req->connection->write(req->connection, msg.ptr, msg.length); |
109 |
109 |
110 close(req->connection->fd); |
110 req->connection->close(req->connection); |
111 } |
111 } |