Merge pull request #751 from oberstet/rel_0_16_1

copyrights transferred from Tavendo to Crossbar.io Technologies
This commit is contained in:
Tobias Oberstein 2016-11-07 14:13:12 +01:00 committed by GitHub
commit ea4842090a
224 changed files with 336 additions and 318 deletions

View File

@ -10,29 +10,29 @@ env:
- TOX_ENV=py27-tw121
- TOX_ENV=py27-tw132
- TOX_ENV=py27-tw154
- TOX_ENV=py27-tw162
- TOX_ENV=py27-tw165
- TOX_ENV=py27-twtrunk
- TOX_ENV=py27-asyncio
- TOX_ENV=pypy-tw121
- TOX_ENV=pypy-tw132
- TOX_ENV=pypy-tw154
- TOX_ENV=pypy-tw162
- TOX_ENV=pypy-tw165
- TOX_ENV=pypy-twtrunk
- TOX_ENV=pypy-asyncio
- TOX_ENV=py33-tw154
- TOX_ENV=py33-tw162
- TOX_ENV=py33-tw165
- TOX_ENV=py33-twtrunk
- TOX_ENV=py33-asyncio
- TOX_ENV=py34-tw154
- TOX_ENV=py34-tw162
- TOX_ENV=py34-tw165
- TOX_ENV=py34-twtrunk
- TOX_ENV=py34-asyncio
#- TOX_ENV=py35-tw154
#- TOX_ENV=py35-tw162
#- TOX_ENV=py35-tw165
#- TOX_ENV=py35-twtrunk
#- TOX_ENV=py35-asyncio
@ -53,7 +53,7 @@ matrix:
- python: 3.5
env:
- TOX_ENV=py35-tw162
- TOX_ENV=py35-tw165
- python: 3.5
env:

View File

@ -200,8 +200,6 @@ cd doc
make publish
```
> The docs are published to the Autobahn Web site, which is hosted on a AWS S3 bucket is owned by Tavendo, and hence the publish can only be done by Tavendo.
### WebSocket Test Reports
[AutobahnTestsuite](http://crossbar.io/autobahn#testsuite) provides a fully automated test suite to verify client and server implementations of the WebSocket Protocol for specification conformance and implementation robustness.
@ -308,8 +306,6 @@ aws --region eu-west-1 s3 sync \
--grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
```
> The above S3 bucket is owned by Tavendo, and hence the upload can only be done by Tavendo.
After the upload has finished, check the live pages:
* [Client Mode Reports](http://autobahn-python.readthedocs.io/en/latest/testreport/clients/index.html)

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) Tavendo GmbH
Copyright (c) Crossbar.io Technologies GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -133,6 +133,3 @@ find_windows_files:
# on Windows (Git Bash), check for files with Unix lines endings
find_unix_files:
find . -name "*" -exec dos2unix -tv {} \; 2>&1 | grep "Unix"
find_tavendo:
find . -path ./.git -prune -o -type f -exec grep -Hi "tavendo" {} \; | grep -v "Copyright (c) Tavendo"

View File

@ -3,7 +3,7 @@ Autobahn\|Python
WebSocket & WAMP for Python on Twisted and asyncio.
| |Version| |Downloads| |Build Status| |Coverage| |Docs|
| |Version| |Build Status| |Coverage| |Docs|
--------------
@ -128,12 +128,6 @@ Above code will work on Twisted and asyncio by changing a single line
.. |Version| image:: https://img.shields.io/pypi/v/autobahn.svg
:target: https://pypi.python.org/pypi/autobahn
.. |Downloads| image:: https://img.shields.io/pypi/dm/autobahn.svg
:target: https://pypi.python.org/pypi/autobahn
.. |GitHub Stars| image:: https://img.shields.io/github/stars/crossbario/autobahn-python.svg?style=social&label=Star
:target: https://github.com/crossbario/autobahn-python
.. |Master Branch| image:: https://img.shields.io/badge/branch-master-orange.svg
:target: https://travis-ci.org/crossbario/autobahn-python.svg?branch=master

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ -24,4 +24,4 @@
#
###############################################################################
__version__ = u'0.16.0'
__version__ = u'0.16.1'

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ -289,8 +289,3 @@ def compute_wcs(key, challenge):
challenge = challenge.encode('utf8')
sig = hmac.new(key, challenge, hashlib.sha256).digest()
return binascii.b2a_base64(sig).strip()
if __name__ == '__main__':
with open('test.svg', 'w') as f:
f.write(qrcode_from_totp(u'CACKN3GRF3KQZMEK', u'tobias1', u'Tavendo'))

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@ -783,15 +783,14 @@ class WebSocketProtocol(object):
So we drop the connection, but set self.wasClean = False.
"""
self.serverConnectionDropTimeoutCall = None
if self.state != WebSocketProtocol.STATE_CLOSED:
self.log.debug("timeout: server did not drop TCP connection (in time)")
self.wasClean = False
self.wasNotCleanReason = u'server did not drop TCP connection (in time)'
self.wasNotCleanReason = u'WebSocket closing handshake timeout (server did not drop TCP connection in time)'
self.wasServerConnectionDropTimeout = True
self.dropConnection(abort=True)
else:
# ok, connection is already closed!
pass
self.log.debug("skipping closing handshake timeout: server did indeed drop the connection in time")
def onOpenHandshakeTimeout(self):
"""
@ -800,18 +799,16 @@ class WebSocketProtocol(object):
So we drop the connection, but set self.wasClean = False.
"""
self.openHandshakeTimeoutCall = None
if self.state in [WebSocketProtocol.STATE_CONNECTING, WebSocketProtocol.STATE_PROXY_CONNECTING]:
self.log.debug("opening handshake timeout: peer did not finish (in time) the opening handshake")
self.wasClean = False
self.wasNotCleanReason = u'peer did not finish (in time) the opening handshake'
self.wasNotCleanReason = u'WebSocket opening handshake timeout (peer did not finish the opening handshake in time)'
self.wasOpenHandshakeTimeout = True
self.dropConnection(abort=True)
elif self.state == WebSocketProtocol.STATE_OPEN:
self.log.debug("skipping opening handshake timeout: WebSocket connection is open (opening handshake already finished)")
elif self.state == WebSocketProtocol.STATE_CLOSING:
self.log.debug("skipping opening handshake timeout: WebSocket connection is already closing ..")
elif self.state == WebSocketProtocol.STATE_CLOSED:
self.log.debug("skipping opening handshake timeout: WebSocket connection is already closed")
else:
@ -825,22 +822,22 @@ class WebSocketProtocol(object):
So we drop the connection, but set self.wasClean = False.
"""
self.closeHandshakeTimeoutCall = None
if self.state != WebSocketProtocol.STATE_CLOSED:
self.log.debug("closing handshake timeout: peer did not finish (in time) the closing handshake")
self.wasClean = False
self.wasNotCleanReason = u'peer did not respond (in time) in closing handshake'
self.wasNotCleanReason = u'WebSocket closing handshake timeout (peer did not finish the opening handshake in time)'
self.wasCloseHandshakeTimeout = True
self.dropConnection(abort=True)
else:
self.log.debug("skipping closing handshake timeout: WebSocket connection is already closed")
self.log.debug('skipping closing handshake timeout: WebSocket connection is already closed')
def onAutoPingTimeout(self):
"""
When doing automatic ping/pongs to detect broken connection, the peer
did not reply in time to our ping. We drop the connection.
"""
self.log.debug("Auto ping/pong: onAutoPingTimeout fired")
self.wasClean = False
self.wasNotCleanReason = u'WebSocket ping timeout (peer did not respond with pong in time)'
self.autoPingTimeoutCall = None
self.dropConnection(abort=True)
@ -849,7 +846,12 @@ class WebSocketProtocol(object):
Drop the underlying TCP connection.
"""
if self.state != WebSocketProtocol.STATE_CLOSED:
self.log.debug("dropping connection: {reason}", reason=self.wasNotCleanReason)
if self.wasClean:
self.log.debug('dropping connection to peer {peer} with abort={abort}', peer=self.peer, abort=abort)
else:
self.log.warn('dropping connection to peer {peer} with abort={abort}: {reason}', peer=self.peer, abort=abort, reason=self.wasNotCleanReason)
self.droppedByMe = True
# this code-path will be hit (*without* hitting
@ -860,7 +862,7 @@ class WebSocketProtocol(object):
self._closeConnection(abort)
else:
self.log.debug("skipping dropConnection since connection is already closed")
self.log.debug('dropping connection to peer {peer} skipped - connection already closed', peer=self.peer)
def _fail_connection(self, code=CLOSE_STATUS_CODE_GOING_AWAY, reason=u'going away'):
"""

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -5,6 +5,17 @@
Changelog
=========
0.16.1
------
`Published 2016-11-07 <https://pypi.python.org/pypi/autobahn/0.16.1`_
* fix: inconsistency between `PublishOptions` and `Publish` message
* new: improve logging with dropped connections (eg due to timeouts)
* fix: various smaller asyncio fixes
* new: rewrite all examples for new Python 3.5 async/await syntax
* fix: copyrights transferred from Tavendo GmbH to Crossbar.io Technologies GmbH
0.16.0
------

View File

@ -113,12 +113,12 @@ master_doc = 'contents'
# General information about the project.
project = u'autobahn'
author = u'Tavendo'
author = u'Crossbar.io Project'
this_year = u'{0}'.format(time.strftime('%Y'))
if this_year != u'2012':
copyright = u'2012-{0}, Tavendo GmbH'.format(this_year)
copyright = u'2012-{0}, Crossbar.io Technologies GmbH'.format(this_year)
else:
copyright = u'2012, Tavendo GmbH'
copyright = u'2012, Crossbar.io Technologies GmbH'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the

View File

@ -113,7 +113,7 @@ lines in the same function. In that case, you should not `return`, but use
@app.signal('onjoin')
def entry_point():
# Calling statuscode
url = "http://tavendo.com"
url = "http://crossbar.io"
code = yield app.session.call('statuscode', url)
print("GET on '%s' returned status '%s'" % (url, code))
@ -127,4 +127,4 @@ Now, in a Terminal:
$ python script.py
Running on 'ws://localhost:8080'
GET on 'http://tavendo.com' returned status '200'
GET on 'http://crossbar.io' returned status '200'

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

View File

@ -2,7 +2,7 @@
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
# Copyright (c) Crossbar.io Technologies GmbH
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal

Some files were not shown because too many files have changed in this diff Show More