Closed
Description
After any query on del of SpawnInstance I get an ignored exception
Exception ignored in <bound method SpawnInstance.__del__ of <osquery.management.SpawnInstance object at 0x021854F0>> pywintypes.error: (1, 'DicsonnectNamedPipe', 'Incorrect function.')
my script:
import osquery instance = osquery.SpawnInstance() instance.open() instance.client.query("<some query>")
Now i use some dirty "hack" as after
instance.client.query("<some query>")
i do:
instance.connection=None
My machine os:
Windows 7x64
Activity
JarryShaw commentedon Aug 10, 2019
This issue remains on version 3.0.6. I used
del
(calling__del__
internally) to make a more reasonable pipe closing, since there's noclose
function.Environment:
osquery-python
: 3.0.6ossuary
: 3.3.0pywin32
: 224Update TPipe.py to replace win32pipe.DisconnectNamedPipe with win32fi…
hotab commentedon Dec 23, 2022
This still happens in 3.0.7 (latest version from pip) on win 10
Problem disappears when using outhex@19691b9 - this fix
Fix 2 issues
filiagees commentedon Apr 10, 2024
@hotab This fix worked for me, too.
Thanks for pointing out.
I'm using win10, with: