• D
    Fix sending of reply to final RPC message · 3cfdc57b
    Daniel P. Berrange 提交于
    The dispatch for the CLOSE RPC call was invoking the method
    virNetServerClientClose(). This caused the client connection
    to be immediately terminated. This meant the reply to the
    final RPC message was never sent. Prior to the RPC rewrite
    we merely flagged the connection for closing, and actually
    closed it when the next RPC call dispatch had completed.
    
    * daemon/remote.c: Flag connection for a delayed close
    * daemon/stream.c: Update to use new API for closing
      failed connection
    * src/rpc/virnetserverclient.c, src/rpc/virnetserverclient.h:
      Add support for a delayed connection close. Rename the
      virNetServerClientMarkClose method to virNetServerClientImmediateClose
      to clarify its semantics
    3cfdc57b
virnetserverclient.c 25.4 KB