X-1.0rc2: IDE: using MongoDB - pymongo: connections not closed
Bug #825273 reported by
WD+WD
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Low
|
RaiMan |
Bug Description
Hi. I tried to write a sikuli script that takes & saves data to mongodb using pymongo.
But sikuli raises non-blocking socket exception when pymongo trying to process data, especially if I call "save" method.
I tried to fix this by connecting & disconnecting every time then I needed to get/change data.
Also, I noticed that sikuli doesn't close the connections to mongo ( even if i call disconnect() method ), so after few minutes of working the amount of unclosed connections growes up very fast. MongoDB starts to deny all incoming connections and freezes. When I close Sikuli IDE, all those connections are shutting down, so MongoDB starts work correctly.
tags: |
added: jython removed: pymongo |
Changed in sikuli: | |
status: | Won't Fix → In Progress |
tags: | added: build |
Changed in sikuli: | |
importance: | Undecided → Low |
milestone: | x1.0 → none |
To post a comment you must log in.
Running scripts in the Sikuli IDE includes the "feature", that no finalize actions at script end are taken (as is the fact, when running a script in the Python/Jython interpreter). This saves the startup time of 3 - 5 seconds for running a script outside the IDE.
So you should run your scripts from command line.
You might try, to use Jython 2.5.2 (Sikuli is bundled with 2.5.1) and see wether this changes the situation.
Generally: this is not a Sikuli problem - it is related to Jython/ MogngoDB/ pymongo