Changeset 276


Ignore:
Timestamp:
02/07/15 19:18:51 (10 years ago)
Author:
atzm
Message:

fix a listport bug on tornado 4.0.x

Location:
etherws/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • etherws/trunk/LICENSE

    r274 r276  
    1 Copyright (c) 2012-2014, Atzm WATANABE <atzm@atzm.org> 
     1Copyright (c) 2012-2015, Atzm WATANABE <atzm@atzm.org> 
    22All rights reserved. 
    33 
  • etherws/trunk/README.rst

    r274 r276  
    202202History 
    203203======= 
     2041.3 
     205  - fix listport bug on tornado 4.0.x 
     206 
    2042071.2 (2014-12-29 JST) 
    205208  - verification of controller SSL certificate support 
  • etherws/trunk/etherws.py

    r274 r276  
    1111# 
    1212# =========================================================================== 
    13 # Copyright (c) 2012-2014, Atzm WATANABE <atzm@atzm.org> 
     13# Copyright (c) 2012-2015, Atzm WATANABE <atzm@atzm.org> 
    1414# All rights reserved. 
    1515# 
     
    419419    @property 
    420420    def target(self): 
    421         return ':'.join(str(e) for e in self.request.connection.address) 
     421        conn = self.request.connection 
     422        if hasattr(conn, 'address'): 
     423            return ':'.join(str(e) for e in conn.address) 
     424        if hasattr(conn, 'context'): 
     425            return ':'.join(str(e) for e in conn.context.address) 
     426        return str(conn) 
    422427 
    423428    def open(self): 
  • etherws/trunk/setup.py

    r274 r276  
    33# 
    44# =========================================================================== 
    5 # Copyright (c) 2012-2014, Atzm WATANABE <atzm@atzm.org> 
     5# Copyright (c) 2012-2015, Atzm WATANABE <atzm@atzm.org> 
    66# All rights reserved. 
    77# 
     
    3737setup( 
    3838    name='etherws', 
    39     version='1.2', 
     39    version='1.3', 
    4040    description='Ethernet over WebSocket', 
    4141    long_description=longdesc, 
Note: See TracChangeset for help on using the changeset viewer.