Source

gevent-websocket / geventwebsocket / websocket.py

Author Commit Message Labels Comments Date
Kevin Le
set socket attribute in WebSocketHixie
Jeffrey Gelens
Manual Merge Denis of his changeset: fix close(): previously it might have caused receive() to hang
Branches
develop
Jeffrey Gelens
Cleaned up examples and moved the autobahn testrunner.
Branches
develop
Jeffrey Gelens
Splitted the Python fixes and exceptions in separate modules
Branches
develop
Denis Bilenko
use BufferedReader on python 2.7; support closing websocket while reading from it; - BufferedReader is used because unlike fileobject it reads data from socket in big chunks (_fileobject avoids leaving leftovers and will do recv(5) if 5 bytes are requested) - it is now possible to close the greenlet concurrently while another greenlet was reading from it; the reading greenlet will finish reading without excexceptions.
Branches
stable
Denis Bilenko
Fix send_frame() to accept message of type other than string
Branches
stable
Denis Bilenko
better clean up in close()
Branches
stable
Denis Bilenko
a number of fixes that make gevent-websocket pass most of autobahn testsuite; slight API changes Changed the arguments of send() method: it no longer accepts opcode, but it accepts binary=bool optional argument There's a new method now: send_frame() which does accept opcode; remove Closed() object: when connection is closed by peer, receive() returns None. The contents of the peer's close frame is available as close_code and close_message properties When a protocol error is detected, the c…
Branches
stable
Denis Bilenko
let's follow pep8?
Branches
stable
Denis Bilenko
add common base class for websockets: WebSocket; if 'str' object is passed, assume it's utf-8, do not re-encode it
Branches
stable
Jeffrey Gelens
Typo
Branches
stable
Jeffrey Gelens
Fixed #5 Encoding issue when sending non-ascii message. Thanks gdamjan and Juanlu001.
Branches
stable
Denis Bilenko
multiple fixes and cleanups - chrome 16 now works - HTTP proxies, like HaProxy, now work with hixie protocol - sending messages is now safe from multiple greenlets (added write lock) - in hixie, WebSocket-Location/Sec-WebSocket-Location is set properly, including the right scheme query string; fixes Safari - geventwebsocket/__init__.py now contains WebSocketHandler; websockets are not imported there, since they are not …
Branches
stable
Denis Bilenko
raise TypeError instead of Exception in _encode_text()
Branches
stable
Denis Bilenko
raise TypeError instead of Exception in send()
Branches
stable
Jeffrey Gelens
Renamed recv to receive in old websocket class
Branches
stable
Jeffrey Gelens
Sending and receiving are both working now
Branches
stable
Jeffrey Gelens
Added some consistency checks to receiving
Branches
stable
Jeffrey Gelens
First Version 8 test is working in FF and Chrome
Branches
stable
Jeffrey Gelens
Merged
Branches
stable
Jeffrey Gelens
.
Branches
stable
Jeffrey Gelens
Updated receiving messages from Hybi10
Branches
stable
Lon Ingram
Return tuple for all opcodes when not in compatibility mode - Comment public methods of WebSocketVersion7
Branches
stable
Lon Ingram
Remove debugging imports
Branches
stable
Lon Ingram
Add compatibility mode to play nicely with gevent-socketio; Comment out HTTP_HOST != SERVER_NAME test
Branches
stable
Lon Ingram
Fix websocket.send to match expected interface
Branches
stable
Lon Ingram
Add remaining reason constants and replace magic numbers
Branches
stable
Lon Ingram
Complete implementation of wait - Now supports fragmented messages
Branches
stable
Lon Ingram
Implement most of wait; Fix race in test application Can now receive unfragmented frames. Added a loop in the test case application that sleeps while the websocket is open. This fixes a race where the application and the test case are both in wait() at the same time.
Branches
stable
Lon Ingram
Implement send and close and beginnings of wait Send doesn't support fragmenting, but does support all opcode types and checks for invalid ones and for invalid encoding. Close sends a close frame.
Branches
stable
  1. Prev
  2. 1
  3. 2
  4. Next