mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Support nonblocking option
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7f6ef5e12d
commit
48f69c25a9
@ -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 {
|
||||
|
@ -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(),
|
||||
|
Reference in New Issue
Block a user