Merge lp:~openerp-dev/openobject-server/6.0-opw-6168-ach into lp:openobject-server/6.0
Proposed by
Anup(SerpentCS)
Status: | Rejected |
---|---|
Rejected by: | Olivier Dony (Odoo) |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-6168-ach |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
38 lines (+9/-1) 2 files modified
bin/service/web_services.py (+4/-1) bin/tools/misc.py (+5/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-6168-ach |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Disapprove | ||
Naresh(OpenERP) | Pending | ||
Jay Vora (Serpent Consulting Services) | Pending | ||
Review via email: mp+65292@code.launchpad.net |
Description of the change
Hello,
When Postgres server is restarted it is not possible to connect to the same db which was connected when the server was restarted. Even if the user disconnects.
I have found a fix for such situation.
Thanks.
To post a comment you must log in.
Sorry, this does not seem like a valid approach.
Firstly, we should not rely on anything coming from the client side to solve a server-side issue, as OpenERP is supposed to be stateless.
Secondly, calling exposing a way to close_db has major and global effects on the server, impacting all current transactions on that database, so this certainly cannot be called as soon as someone logs out.
Managing database connections is the responsibility of the server, it must not be exposed to clients, or for that matter, to addons.