Permalink
Switch branches/tags
Nothing to show
Commits on Mar 4, 2012
  1. 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 Oct 19, 2011
  2. doc string

    committed Mar 4, 2012
  3. Support firefox

    committed Mar 4, 2012
Commits on Sep 25, 2011
  1. make this an importable module

    Thomas Vander Stichele committed with Sep 13, 2011
  2. Add .gitignore file

    jonnor committed with Aug 21, 2011
Commits on Sep 23, 2011
Commits on Sep 11, 2011
  1. implementing IPush interface in order to support TCPForward

    missing tests and documentation
    committed Sep 11, 2011
  2. Merge branch 'master' of github.com:iuridiniz/txWebSocket

    Conflicts:
    	websocket.py
    committed Sep 11, 2011
  3. Better header detection

    The connection was only upgrated if connection header is exactly *Upgrade*
    and upgrade header is exactly *WebSocket* what is in according
    to section 5.1 of draft-hixie-thewebsocketprotocol-76
    
    But some buggy browsers (Firefox 6.0.2) sent this information incorrectly
        ```
        GET /echo2 HTTP/1.1
        Host: 127.0.0.1:9090
        User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
        Accept-Language: en-us,en;q=0.7,pt-br;q=0.3
        Accept-Encoding: gzip, deflate
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
        Connection: keep-alive, Upgrade
        Sec-WebSocket-Version: 7
        Sec-WebSocket-Origin: http://localhost:9090
        Sec-WebSocket-Key: vbus0IdhZNHuIX7d9Q2qcg==
        Pragma: no-cache
        Cache-Control: no-cache
        Upgrade: websocket
        ```
    committed Sep 11, 2011
  4. new class WebSocketFactory

    Factory which wraps another factory to provide WebSockets transports for
    all of its protocols.
    committed Sep 11, 2011
  5. Merge remote-tracking branch wulczer 'upstream/master'

    Conflicts:
    	websocket.py
    committed Sep 11, 2011
  6. try to avoid merge conflicts

    committed Sep 11, 2011
  7. Better header detection

    The connection was only upgrated if connection header is exactly *Upgrade*
    and upgrade header is exactly *WebSocket* what is in according
    to section 5.1 of draft-hixie-thewebsocketprotocol-76
    
    But some buggy browsers (Firefox 6.0.2) sent this information incorrectly
        ```
        GET /echo2 HTTP/1.1
        Host: 127.0.0.1:9090
        User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
        Accept-Language: en-us,en;q=0.7,pt-br;q=0.3
        Accept-Encoding: gzip, deflate
        Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
        Connection: keep-alive, Upgrade
        Sec-WebSocket-Version: 7
        Sec-WebSocket-Origin: http://localhost:9090
        Sec-WebSocket-Key: vbus0IdhZNHuIX7d9Q2qcg==
        Pragma: no-cache
        Cache-Control: no-cache
        Upgrade: websocket
        ```
    committed Sep 11, 2011
  8. new class WebSocketFactory

    Factory which wraps another factory to provide WebSockets transports for
    all of its protocols.
    committed Sep 11, 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