Support nonblocking option

This commit is contained in:
Anmin Liu
2024-04-21 17:08:21 +00:00
committed by Tate, Hongliang Tian
parent 7f6ef5e12d
commit 48f69c25a9
12 changed files with 301 additions and 159 deletions

View File

@ -25,7 +25,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
use log::debug;
use super::{
error::SocketError,
@ -116,7 +115,6 @@ impl VsockEvent {
}
VirtioVsockOp::Rst | VirtioVsockOp::Shutdown => {
header.check_data_is_empty()?;
debug!("Disconnected from the peer");
let reason = if op == VirtioVsockOp::Rst {
DisconnectReason::Reset
} else {

View File

@ -209,7 +209,7 @@ impl SocketDevice {
connection_info: &mut ConnectionInfo,
buffer_len: usize,
) -> Result<(), SocketError> {
debug!("connectin info {:?}", connection_info);
debug!("connection info {:?}", connection_info);
debug!(
"peer free from peer: {:?}, buffer len : {:?}",
connection_info.peer_free(),