The protocol may not use an explicit API to close the connection and
just close the socket instead. Add option to suppress errors in such
case.
virObjectUnlock(client);
return ret;
}
+
+
+/**
+ * virNetServerClientSetQuietEOF:
+ *
+ * Don't report errors for protocols that close connection by hangup of the
+ * socket rather than calling an API to close it.
+ */
+void
+virNetServerClientSetQuietEOF(virNetServerClientPtr client)
+{
+ virNetSocketSetQuietEOF(client->sock);
+}
bool *readonly, char **sock_addr,
virIdentityPtr *identity);
+void virNetServerClientSetQuietEOF(virNetServerClientPtr client);
+
#endif /* __VIR_NET_SERVER_CLIENT_H__ */