[ovs-git] [openvswitch/ovs] 871a38: python: Catch exception "SSL.SysCallError" for sen...

GitHub noreply at github.com
Sat Jan 14 16:50:38 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 871a38766b47f53160f743ba779f5d3a3c99aa04
      https://github.com/openvswitch/ovs/commit/871a38766b47f53160f743ba779f5d3a3c99aa04
  Author: Guoshuai Li <ligs at dtdream.com>
  Date:   2017-01-14 (Sat, 14 Jan 2017)

  Changed paths:
    M python/ovs/stream.py

  Log Message:
  -----------
  python: Catch exception "SSL.SysCallError" for send by SSL.

When OVSDB server is aborted,
the SSL send function will throw SSL.SysCallError exception,
which we need to catch and return it's -errno.

While SSL.WantWriteError exception needs to return -EAGAIN
based on its parent class, not EAGAIN

Signed-off-by: Guoshuai Li <ligs at dtdream.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list