Config:
<uwsgi>
        <socket>127.0.0.1:9002</socket>
        <uid>uwsgiTesting</uid>
        <gid>testingServer</gid>
        <processes>1</processes>
        <enable-threads />
        <threads>5</threads>
        <touch-reload>/srv/testing/reload</touch-reload>
        <pythonpath>/srv/testing/</pythonpath>
        <module>server</module>
</uwsgi>


This works:
uwsgi.applications = {
                '':               upload.upload,
#               '':               default,
#               'upload':     upload.upload,
#               'register':    register.register,
#               'login':        login.login,
}

root@host:/opt/uwsgi/uwsgi# ./uwsgi --xml /srv/testing/uwsgi.xml
tmp = /
[uWSGI] parsing config file /srv/testing/uwsgi.xml
*** Starting uWSGI 0.9.8 (64bit) on [Wed Jun 22 19:15:48 2011] ***
compiled with version: 4.4.5 on 22 June 2011 01:27:14
setgid() to 1002
setuid() to 1003
your memory page size is 4096 bytes
allocated 4720 bytes (4 KB) for 5 cores per worker.
uwsgi socket 0 bound to TCP address 127.0.0.1:9002 fd 3
Python version: 2.6.6 (r266:84292, Dec 26 2010, 22:48:11)  [GCC 4.4.5]
Python main interpreter initialized at 0x15a5130
threads support enabled
your server socket listen backlog is limited to 100 connections
*** Operational MODE: threaded ***
added /srv/testing/ to pythonpath.
found a multiapp module...
main mountpoint =
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x15a5130 pid:
23490 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 23490)
spawned uWSGI worker 1 (pid: 23495, cores: 5)



This doesn't work:
uwsgi.applications = {
#              '':               upload.upload,
                '':               default,
                'upload':     upload.upload,
#               'register':    register.register,
#               'login':        login.login,
}

root@host:/opt/uwsgi/uwsgi# ./uwsgi --xml /srv/testing/uwsgi.xml
tmp = /
[uWSGI] parsing config file /srv/testing/uwsgi.xml
*** Starting uWSGI 0.9.8 (64bit) on [Wed Jun 22 19:15:24 2011] ***
compiled with version: 4.4.5 on 22 June 2011 01:27:14
setgid() to 1002
setuid() to 1003
your memory page size is 4096 bytes
allocated 4720 bytes (4 KB) for 5 cores per worker.
uwsgi socket 0 bound to TCP address 127.0.0.1:9002 fd 3
Python version: 2.6.6 (r266:84292, Dec 26 2010, 22:48:11)  [GCC 4.4.5]
Python main interpreter initialized at 0x1ed9130
threads support enabled
your server socket listen backlog is limited to 100 connections
*** Operational MODE: threaded ***
added /srv/testing/ to pythonpath.
found a multiapp module...
main mountpoint =
WSGI application 0 (SCRIPT_NAME=) ready on interpreter 0x1ed9130 pid:
23485 (default app)
Segmentation fault

This is what I always used to do, I'm not positive if it's fresh as of
0.9.8 or tip.
Is there a new way to get this behavior?
-Schmidty
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to