Commit 5c3e490f authored by chenhuaqing's avatar chenhuaqing

fixed bug for dns resolver

parent 6a0f26a0
......@@ -128,7 +128,7 @@ impl DnsClient {
let bytes = msg.to_vec()?;
socket.send(&bytes).await?;
let mut recv_buf = [0u8; 256];
let mut recv_buf = [0u8; 512];
let n = socket.recv(&mut recv_buf).await?;
Message::from_vec(&recv_buf[..n])
......@@ -141,7 +141,7 @@ impl DnsClient {
let bytes = msg.to_vec()?;
socket.send(ns, &bytes).await?;
let mut recv_buf = [0u8; 256];
let mut recv_buf = [0u8; 512];
let (n, _) = socket.recv(&mut recv_buf).await?;
Message::from_vec(&recv_buf[..n])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment