Coder Social home page Coder Social logo

SocketIO backend seems broken with latest version of gevent-socketio ('Server' object has no attribute 'config') about chaussette HOT 7 CLOSED

circus-tent avatar circus-tent commented on September 27, 2024
SocketIO backend seems broken with latest version of gevent-socketio ('Server' object has no attribute 'config')

from chaussette.

Comments (7)

potens1 avatar potens1 commented on September 27, 2024

BTW, the version of gevent-socketio is 0.3.6

from chaussette.

potens1 avatar potens1 commented on September 27, 2024

Edited the title and first comment to be a little bit better

from chaussette.

tarekziade avatar tarekziade commented on September 27, 2024

Can you try with the latest master please ?

from chaussette.

potens1 avatar potens1 commented on September 27, 2024

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.

tarekziade avatar tarekziade commented on September 27, 2024

@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.

potens1 avatar potens1 commented on September 27, 2024

@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 avatar tarekziade commented on September 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.