[libvirt] Add a new api, get this error.gnutls_record_recv: A TLS packet with unexpected length was received.

灵矫 lingjiao.lc at taobao.com
Sun Feb 12 18:26:26 UTC 2012

     I just add the function prototypes in libvirt.h libvirt.in<http://libvirt.in>,   implement it in libvirt.c and call a hypervisor function in qemu_drivier.h.
basicly no other codes.

2012/2/13 chang liu <lingjiao.lc at gmail.com<mailto:lingjiao.lc at gmail.com>>
hi all,
   Sorry to disturb you.
   I wanna to add a new api to get some sheepdog cluster info, but I has get this error, I don't know how to do.

   I have add a function to daemon/remote.c that call the libvirt.c 's  api, remoteDispatchConnectExecuteCommand, and here i get the return value.

        struct remote_connect_execute_command_ret {
               remote_nonnull_string ret_val;
        typedef struct remote_connect_execute_command_ret remote_connect_execute_command_ret;

        static int
        remoteDispatchConnectExecuteCommand (struct qemud_server *server ATTRIBUTE_UNUSED,
                             struct qemud_client *client ATTRIBUTE_UNUSED,
                             virConnectPtr conn,
                             remote_message_header *hdr ATTRIBUTE_UNUSED,
                             remote_error *rerr,
                             remote_connect_execute_command_args *args,
                             remote_connect_execute_command_ret *ret)

     the return value has been in ret->ret_val. I know the func remoteDispatchDomainDumpXml returns it's values by ret->xml.

      And after this, the things is the same, but when I dump xml, it's ok, but when i wanna to get my value, it's cause
 this error:
             error : qemudClientReadBuf:1708 : gnutls_record_recv: A TLS packet with unexpected length was received.

    Could any body tell me, if I wanna to get a string data, do I need to do any additional actions?

技术保障-系统部 灵矫(刘畅)
分机 0571-88155188-11731
手机 18911205251


This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120213/8f473bc8/attachment-0001.htm>

More information about the libvir-list mailing list