python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Sockets not closed by Zeep resulting in resource warning

Open DShivansh opened this issue 5 years ago • 1 comments

I was trying to perform basic zeep query

from zeep import Client

if __name__ == "__main__":
    client = Client(wsdl='http://www.dneonline.com/calculator.asmx?wsdl')
    print(client.service.Add(1,2))

But when I ran the above code I get the following warning sys:1: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('x.x.x.x', 54241), raddr=('y.y.y.y', 80)>

  1. zeep version is 3.4.0
  2. wsdl file is http://www.dneonline.com/calculator.asmx?wsdl

DShivansh avatar Apr 02 '20 14:04 DShivansh