Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
1e1b85e9
Commit
1e1b85e9
authored
12 years ago
by
Antony Lesuisse
Browse files
Options
Downloads
Patches
Plain Diff
gevent first try
bzr revid: al@openerp.com-20120922124354-unk1u8a9anst5hwo
parent
d61bae80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
openerp-server
+6
-0
6 additions, 0 deletions
openerp-server
openerp/service/__init__.py
+2
-1
2 additions, 1 deletion
openerp/service/__init__.py
openerp/service/wsgi_server.py
+4
-1
4 additions, 1 deletion
openerp/service/wsgi_server.py
with
12 additions
and
2 deletions
openerp-server
+
6
−
0
View file @
1e1b85e9
...
...
@@ -223,6 +223,12 @@ def main():
check_root_user
()
openerp
.
tools
.
config
.
parse_config
(
sys
.
argv
[
1
:])
# TODO GEVENT if event
import
gevent.monkey
gevent
.
monkey
.
patch_all
()
import
gevent_psycopg2
gevent_psycopg2
.
monkey_patch
()
check_postgres_user
()
openerp
.
netsvc
.
init_logger
()
report_configuration
()
...
...
This diff is collapsed.
Click to expand it.
openerp/service/__init__.py
+
2
−
1
View file @
1e1b85e9
...
...
@@ -86,7 +86,8 @@ def start_services():
netrpc_server
.
init_servers
()
# Start the main cron thread.
openerp
.
cron
.
start_master_thread
()
# TODO GEVENT if event use greenlet in cron
# openerp.cron.start_master_thread()
# Start the top-level servers threads (normally HTTP, HTTPS, and NETRPC).
openerp
.
netsvc
.
Server
.
startAll
()
...
...
This diff is collapsed.
Click to expand it.
openerp/service/wsgi_server.py
+
4
−
1
View file @
1e1b85e9
...
...
@@ -424,7 +424,10 @@ def serve():
# TODO Change the xmlrpc_* options to http_*
interface
=
config
[
'
xmlrpc_interface
'
]
or
'
0.0.0.0
'
port
=
config
[
'
xmlrpc_port
'
]
httpd
=
werkzeug
.
serving
.
make_server
(
interface
,
port
,
application
,
threaded
=
True
)
#httpd = werkzeug.serving.make_server(interface, port, application, threaded=True)
# TODO GEVENT if event
from
gevent.wsgi
import
WSGIServer
httpd
=
WSGIServer
((
interface
,
port
),
application
)
_logger
.
info
(
'
HTTP service (werkzeug) running on %s:%s
'
,
interface
,
port
)
httpd
.
serve_forever
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment