mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Create the api socket fd to pass to the http server
Instead of using the http server's method to have it create the fd (causing the http thread to need to support the socket, bind and listen syscalls). Create the socket fd in the vmm thread and use the http server's new method supporting passing in this fd for the api socket. Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
51a93bc635
commit
b8779ddc9e
@@ -144,6 +144,10 @@ pub enum Error {
|
||||
/// Error creating API server
|
||||
#[error("Error creating API server {0:?}")]
|
||||
CreateApiServer(micro_http::ServerError),
|
||||
|
||||
/// Error binding API server socket
|
||||
#[error("Error creation API server's socket {0:?}")]
|
||||
CreateApiServerSocket(#[source] io::Error),
|
||||
}
|
||||
pub type Result<T> = result::Result<T, Error>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user