Skip to content

Commit

Permalink
fix accept trace message and prep release
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed May 29, 2020
1 parent 1023ab5 commit fff2a8f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ntex/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changes

## [0.1.18] - 2020-05-xx
## [0.1.18] - 2020-05-29

* ntex::connect: Add `connect` helper function

Expand Down
2 changes: 1 addition & 1 deletion ntex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex"
version = "0.1.17"
version = "0.1.18"
authors = ["Nikolay Kim <[email protected]>"]
description = "Framework for composable network services"
readme = "README.md"
Expand Down
6 changes: 6 additions & 0 deletions ntex/src/http/h1/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ impl Codec {
MessageType::Payload
}
}

#[inline]
#[doc(hidden)]
pub fn set_date_header(&self, dst: &mut BytesMut) {
self.timer.set_date_header(dst)
}
}

impl Decoder for Codec {
Expand Down
3 changes: 2 additions & 1 deletion ntex/src/server/accept.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ impl Accept {
}

fn poll(&mut self) {
trace!("Starting server accept loop");

// Create storage for events
let mut events = mio::Events::with_capacity(128);

Expand Down Expand Up @@ -424,7 +426,6 @@ impl Accept {
}

fn accept(&mut self, token: usize) {
trace!("Starting server accept loop");
loop {
let msg = if let Some(info) = self.sockets.get_mut(token) {
match info.sock.accept() {
Expand Down

0 comments on commit fff2a8f

Please sign in to comment.