Skip to content

Commit

Permalink
Merge pull request containerd#92 from Tim-Zhang/bump-tokio-vsock-0.3.1
Browse files Browse the repository at this point in the history
Bump tokio-vsock to 0.3.1 and remove hack code for it
  • Loading branch information
liubin authored May 26, 2021
2 parents 6dcadbf + c3eeb76 commit 8f17b61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ thiserror = "1.0"
async-trait = { version = "0.1.31", optional = true }
tokio = { version = "1", features = ["rt", "sync", "io-util", "macros", "time"], optional = true }
futures = { version = "0.3", optional = true }
tokio-vsock = { version = "0.3", optional = true }
tokio-vsock = { version = "0.3.1", optional = true }

[build-dependencies]
protobuf-codegen-pure = "2.14.0"
Expand Down
6 changes: 0 additions & 6 deletions src/asynchronous/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ impl Server {
// Accept a new connection
match conn {
Ok(stream) => {
let fd = stream.as_raw_fd();
if let Err(e) = common::set_fd_close_exec(fd) {
error!("{:?}", e);
continue;
}

// spawn a connection handler, would not block
spawn_connection_handler(
listenfd,
Expand Down

0 comments on commit 8f17b61

Please sign in to comment.