I changed it in trunk so that it is automatic and now (again) web2py
works with Jython out of the box. I have email the author of
wsgiserver hoping this is fixed in the official distribution.


On Nov 8, 1:56 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> jython does not seem to support socket option no_delay. In gluon/
> wsgiserver.py replace
>
>  nodelay = True
>
> with
>
>  nodelay = False
>
> Massimo
>
> On Nov 8, 1:48 pm, Nik <nitral...@googlemail.com> wrote:
>
> > Hi folks,
>
> > For testing web2py with jython I have started it
> > by executing  "jython web2py.py" and got the following
> > error message:
>
> > ==================================================================
> > saturn:web2py_1.71.2 nik$ jython web2py.py
> > WARNING:root:no file locking
> > WARNING:root:unable to import dbhash
> > WARNING:root:GUI not available because Tk library is not installed
> > default applications appear to be installed already
> > web2py Enterprise Web Framework
> > Created by Massimo Di Pierro, Copyright 2007-2009
> > Version 1.71.2 (2009-11-04 15:48:54)
> > Database drivers available:
> > Starting cron...
> > choose a password:********
> > please visit:
> >        http://127.0.0.1:8000
> > use "kill -SIGTERM 949" to shutdown the web2py server
> > Traceback (most recent call last):
> >   File "web2py.py", line 20, in <module>
> >     gluon.widget.start(cron=True)
> >   File "/Users/nik/work/web/web2py_1.71.2/gluon/widget.py", line 852,
> > in start
> >     server.start()
> >   File "/Users/nik/work/web/web2py_1.71.2/gluon/widget.py", line 852,
> > in start
> >     server.start()
> >   File "/Users/nik/work/web/web2py_1.71.2/gluon/main.py", line 710, in
> > start
> >     self.server.start()
> >   File "/Users/nik/work/web/web2py_1.71.2/gluon/wsgiserver.py", line
> > 1884, in start
> >     self.socket.listen(self.request_queue_size)
> >   File "<string>", line 1, in listen
> >   File "/Users/nik/Applications/jython2.5.1/Lib/socket.py", line 824,
> > in listen
> >     self._config()
> >   File "/Users/nik/Applications/jython2.5.1/Lib/socket.py", line 824,
> > in listen
> >     self._config()
> >   File "/Users/nik/Applications/jython2.5.1/Lib/socket.py", line 763,
> > in _config
> >     self.sock_impl.setsockopt(level, optname, self.pending_options
> > [ (level, optname) ])
> >   File "/Users/nik/Applications/jython2.5.1/Lib/socket.py", line 282,
> > in setsockopt
> >     raise error(errno.ENOPROTOOPT, "Socket option '%s' (level '%s')
> > not supported on socket(%s)" % (_constant_to_name(option),
> > _constant_to_name(level), str(self.jsocket)))
> > socket.error: (42, "Socket option 'TCP_NODELAY' (level 'IPPROTO_TCP')
> > not supported on socket(ServerSocket[addr=/
> > 127.0.0.1,localport=8000])")
> > ==================================================================
>
> > Am I missing something here?
>
> > Regards
> > Nik
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to