Comments (7)
BTW, the version of gevent-socketio is 0.3.6
from chaussette.
Edited the title and first comment to be a little bit better
from chaussette.
Can you try with the latest master please ?
from chaussette.
Hello,
Just tried but it seems this is the same behaviour, the request is always pending, nothing appends until I cancel it.
Is my testing method adapted or am I missing something ?
from chaussette.
@potens1 I have added a websocket example app
please update master, and run this from the root:
chaussette examples.simple_chat.chat.app --backend socketio
Then visit localhost:8080 and see if it works.
from chaussette.
@tarekziade It's perfectly working.
I've also tried to do
chaussette chaussette.util.hello_app --backend socketio & wget localhost:8080 &
and noticed that, if I kill chausette, then, and only then, the wget is getting the answer
fg 1
^CTraceback (most recent call last):
File "/home/vagrant/circtest/local/lib/python2.7/site-packages/gevent/baseserver.py", line 140, in _do_read
args = self.do_read()
File "/home/vagrant/circtest/local/lib/python2.7/site-packages/gevent/server.py", line 93, in do_read
client_socket, address = self.socket.accept()
KeyboardInterrupt
<Server at 0x11b1c10 fileno=3 address=127.0.0.1:8080> failed with KeyboardInterrupt
127.0.0.1 - - [2014-04-29 09:02:28] "GET / HTTP/1.1" 200 113 0.000269
200 OK
Length: 11 [text/plain]
Saving to: `index.html'
100%[=====================================================================================================================================================================================================================================>] 11 --.-K/s in 0s
2014-04-29 09:02:28 (400 KB/s) - `index.html' saved [11/11]
(I've tried the hello_app since it was the default app, hope it helps)
By the way: Thank you for all the time you are spending on this project (and all the others, and your books)!
from chaussette.
@tarekziade It's perfectly working.
great ! let me know if it's also the case for your own app
(I've tried the hello_app since it was the default app, hope it helps)
The hello app is not meant to work with web socket, that's probably why it breaks with the socket.io backend
By the way: Thank you for all the time you are spending on this project (and all the others, and your books)!
You are welcome, happy if it's useful
from chaussette.
Related Issues (20)
- errors thrown by backends or chaussette enter infinite loop HOT 5
- Chaussette does not log requests HOT 1
- Thread Exception when running Chaussette with gevent backend on a Django1.6 wsgi app HOT 18
- custom backend config HOT 4
- Add a -t --timeout option to let chaussette die if the request took more than TIMEOUT seconds. HOT 1
- Support graceful shutdown HOT 2
- Chaussette vs. G-event+Redis (?!) HOT 6
- Need to add tornado in the docs
- waitress compat broken HOT 2
- File descriptors don't seemed to be closed after deletion HOT 3
- Cannot SIGTERM chaussette
- The --python-path argument doesn't do anything
- Non-ascii URL errors HOT 1
- Chaussette does not work anymore with waitress v1.0.0 HOT 4
- Raise the test coverage to 90%+
- Enable Bjoern in Python 3
- Chaussette under python3.6 can't discover gevent backend
- chaussette does not work with waitress > 0.9
- maintainership HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chaussette.