[IronPython] IronPython and CPython httplib and ssl modules produce IOError
loocas at duber.cz
Fri Jun 10 13:55:46 CEST 2011
I hope someone out there could help me out with this problem.
I have a API written in Python (CPython that is) that relies on
some of the CPython modules, such as ssl and httplib.
The problem is, when I call the API and its methods via IronPython
I get IOError: "System.IO.IOException: Unable to write data to the
transport connection: Cannot access a disposed object."
The weirdest thing is, if I make the call for the second time,
all goes through beautifully. Then again, thrid time errors out, but
fourth goes through just fine. And so on so forth.
Here's the exact script excerpt (with the thorough error output) at
I call the sg.find_one() method the first time, which produces the
IOError. Then at the end of the error output, I call it again and
as you can see, it returns the correct object.
Please, could anyone tell me how to deal with this without rewriting
the given API to use .NET objects?
Thanks a lot in advance, cheers,
[T] +420 602 444 164
[M] info at duber.cz
[A] R.A.Dvorského 601, Praha 10
[A] 10900, Czech Republic, Europe
More information about the Ironpython-users