Permalink
Commits on Mar 17, 2012
  1. only write if connected

    Thomas Vander Stichele committed Mar 17, 2012
  2. make it work with mozilla too without flash

    Thomas Vander Stichele committed Mar 17, 2012
  3. Also allow version 13 in hybi client handshake

    The protocol changes don't really affect the rest of the code we never
    check Sec-WebSocket-Version in the hybi-8 flow.
    chadselph committed with Thomas Vander Stichele Oct 19, 2011
Commits on Sep 13, 2011
  1. ignore .pyc

    Thomas Vander Stichele committed Sep 13, 2011
  2. make this an importable module

    Thomas Vander Stichele committed Sep 13, 2011
Commits on Sep 12, 2011
  1. wulczer told me to do this for firefox 6

    Thomas Vander Stichele committed Sep 12, 2011
Commits on Sep 3, 2011
  1. Maintain a connected flag to prevent attribute errors.

    When the underlying Request object fires the notifyFinish Deferred's
    errback, the _request attribute gets deleted, supposedly to prevent
    memory leaks. That's definitely not the best way to handle references
    and probably is not necessary at all, but changing that would require
    more in-depth investigation.
    
    For now, to prevent errors when the connection is lost and then the
    remaining buffers get written to the now nonexistent request, causing
    AttributeErrors, keep a flag that gets set when the connection is lost
    and makes further writes and connection drop requests get ignored.
    wulczer committed Sep 3, 2011
Commits on Aug 17, 2011
  1. Look for "Upgrade" in Connection instead of matching exactly.

    The Connection header can contain other stuff, for instance Firefox 6
    puts "keep-alive" there.
    wulczer committed Aug 17, 2011
Commits on Jul 31, 2011
  1. Merge branch 'hybi-10'

    wulczer committed Jul 31, 2011
  2. Merge branch 'hybi-10'

    Conflicts:
    	test_websocket.py
    wulczer committed Jul 31, 2011
  3. Fix misparsing of empty frames.

    Empty frames were putting the decoder in the PAYLOAD state, from which
    it was never recovering because no payload was ever received.
    wulczer committed Jul 31, 2011
  4. Fix reference errors when disconnecting the client.

    The decoder does not have a reference to the transport, it has to go
    through the handler.
    wulczer committed Jul 31, 2011
  5. Factor out a method that completes frame reception.

    In passing fix a few bugs where opcodes were mismatched and frame
    fragments were lost.
    wulczer committed Jul 31, 2011
  6. Only complain about binary frame length after reading all of it.

    Otherwise the frameLengthExceeded handler can be called multiple times
    while decoding the length.
    wulczer committed Jul 31, 2011
  7. Fix decoding of pre-hixie-76 protocol version.

    Commit 752241f accditentally ended up
    hooking the hybi-10 protocol decoder to requests using the
    pre-hixie-75 handshake.
    wulczer committed Jul 31, 2011
  8. Merge branch 'hybi-10'

    wulczer committed Jul 31, 2011
  9. Add support for the hybi-10 WebSocket protocol.

    This protocol version is defined in
    http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10
    and is incompatible with the currently popular hixie-76 version.
    
    Add code to handle the new handshake and data framing. Still missing
    is support for fragmented frames and unit tests. There is probably a
    couple of bugs hiding in there, but it was successfully tested with
    Chromium 15.0.839.0, which implements hybi-10.
    wulczer committed Jul 31, 2011
Commits on May 15, 2011
  1. Support the client-initiated WebSocket closing handshake.

    Specified in section 1.4 of hixie-76, the closing handshake can be
    initiated by either peer. Support closing handshakes initiated by the
    client, the server does not have the ability to initiate closing
    handshakes himself.
    wulczer committed May 15, 2011
  2. Overhaul WebSocket protocol parsing using makeStatefulDispatcher.

    Support 0xFF frames, as specified in the WebSocket protocol draft
    hixie-76, section 5.3. Introduce a separate instance variable
    controlling the maximum size of a 0xFF frame that the server will accept.
    wulczer committed May 15, 2011
Commits on Feb 14, 2011
Commits on Jan 23, 2011
  1. Merge remote branch 'upstream/master'

    Conflicts:
    	websocket.py
    wulczer committed Jan 23, 2011
Commits on Jan 22, 2011
  1. Fix undefined name.

    Tests pass again.
    MostAwesomeDude committed Jan 22, 2011
  2. Fix undefined name.

    MostAwesomeDude committed Jan 22, 2011
Commits on Dec 23, 2010
  1. Fix some memory leaks.

    We now explicity del references to objects as connections are dropped.
    Also, there was a small bug in the example where the loopingCall had
    to be `del`ed for the Handler object to be garbage collected.
    
    Closes #3
    rlotun committed Dec 23, 2010
  2. Added connectionMade to WebSocketHandler.

    It should now be possible to insert initialization code
    for incoming connections.
    
    Closes: #5
    rlotun committed Dec 23, 2010
Commits on Sep 14, 2010
  1. Made WebSocketTransport implement ITransport. Also added getPeer and …

    …getHost implementations that will allow you to get the IP of the connected client. Closes #1
    rlotun committed Sep 14, 2010