Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace closes connection. #15

Open
sastephe opened this issue Mar 27, 2015 · 1 comment
Open

Backspace closes connection. #15

sastephe opened this issue Mar 27, 2015 · 1 comment

Comments

@sastephe
Copy link

Hi I have been running the sample code but when I type a backspace the connection closes with a TypeError. I was wondering if I could be given a hint on how I may want to fix this. Thank you for your help. Sam

@sastephe
Copy link
Author

This is the traceback that I get when I try to use the backspace ...

Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\gevent\greenlet.py", line 327, in run
result = self._run(_self.args, *_self.kwargs)
File "C:\Anaconda\lib\site-packages\telnetsrv\telnetsrvlib.py", line 494, in streamserver_handle
cls(request, address, server)
File "C:\Anaconda\lib\site-packages\telnetsrv\green.py", line 14, in init
TelnetHandlerBase.init(self, request, client_address, server)
File "C:\Anaconda\lib\site-packages\telnetsrv\telnetsrvlib.py", line 481, in init
SocketServer.BaseRequestHandler.init(self, request, client_address, server)
File "C:\Anaconda\lib\SocketServer.py", line 649, in init
self.handle()
File "C:\Anaconda\lib\site-packages\telnetsrv\telnetsrvlib.py", line 984, in handle
raw_input = self.readline(prompt=self.PROMPT).strip()
File "C:\Anaconda\lib\site-packages\telnetsrv\telnetsrvlib.py", line 703, in readline
self._readline_echo(self.CODES['CSRLEFT'] + self.CODES['DEL'], echo)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
<Greenlet at 0x270b800L: <bound method classobj.streamserver_handle of <class main.MyTelnetHandler at 0x000000000273
7348>>(<socket at 0x2750668L fileno=332 sock=127.0.0.1:80, ('127.0.0.1', 56100))> failed with TypeError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant