go4retro / tcpser

Hayes modem emulator application
106 stars 30 forks source link

Enabling Telnet binary xmit #15

Closed bucko219 closed 3 years ago

bucko219 commented 3 years ago

Not sure if this is a bug or maybe jme just needing a explanation on what it is doing and why. I run a BBS with TCPSER, and when a ANSI caller connects, I get a nonstop stream of parsing nvt command, enabling telnet binary xmit sometimes it will cause TCPSER to crash and shut down. Is this normal or is there something I am missing here??

go4retro commented 3 years ago

Do a run with tracing enabled and send me the trace data. It's possible the ANSI control chars are being misinterpreted as NVT commands, but we should be able to fix that.

bucko219 commented 3 years ago

Hi Jim for some reason I can't seem to get TCPSER to send to a file, so here is a clip of what is happening:

2021-05-02 10:45:17:139983550134016:DEBUG:Read 3 bytes from socket 2021-05-02 10:45:17:139983550134016:INFO:Parsing nvt command 2021-05-02 10:45:17:139983550134016:DEBUG:Received NVT command: DO 1 2021-05-02 10:45:17:139983550134016:DEBUG:Sending NVT command: WILL 1 2021-05-02 10:45:17:139983550134016:DEBUG:Data available on socket 2021-05-02 10:45:17:139983550134016:TRACE:IP<-|0000|ff fd 00 |... | 2021-05-02 10:45:17:139983550134016:DEBUG:Read 3 bytes from socket 2021-05-02 10:45:17:139983550134016:INFO:Parsing nvt command 2021-05-02 10:45:17:139983550134016:DEBUG:Received NVT command: DO 0 2021-05-02 10:45:17:139983550134016:INFO:Enabling telnet binary xmit 2021-05-02 10:45:17:139983550134016:DEBUG:Sending NVT command: WILL 0 2021-05-02 10:45:17:139983550134016:DEBUG:Data available on socket 2021-05-02 10:45:17:139983550134016:TRACE:IP<-|0000|ff fb 00 |... | 2021-05-02 10:45:17:139983550134016:DEBUG:Read 3 bytes from socket 2021-05-02 10:45:17:139983550134016:INFO:Parsing nvt command 2021-05-02 10:45:17:139983550134016:DEBUG:Received NVT command: WILL 0 2021-05-02 10:45:17:139983550134016:INFO:Enabling telnet binary recv 2021-05-02 10:45:17:139983550134016:DEBUG:Sending NVT command: DO 0 2021-05-02 10:45:17:139983550134016:DEBUG:Data available on socket 2021-05-02 10:45:17:139983550134016:TRACE:IP<-|0000|ff fd 01 |... | 2021-05-02 10:45:17:139983550134016:DEBUG:Read 3 bytes from socket 2021-05-02 10:45:17:139983550134016:INFO:Parsing nvt command 2021-05-02 10:45:17:139983550134016:DEBUG:Received NVT command: DO 1 2021-05-02 10:45:17:139983550134016:DEBUG:Sending NVT command: WILL 1 2021-05-02 10:45:17:139983550134016:DEBUG:Data available on socket 2021-05-02 10:45:17:139983550134016:TRACE:IP<-|0000|ff fd 00 |... | 2021-05-02 10:45:17:139983550134016:DEBUG:Read 3 bytes from socket 2021-05-02 10:45:17:139983550134016:INFO:Parsing nvt command 2021-05-02 10:45:17:139983550134016:DEBUG:Received NVT command: DO 0 2021-05-02 10:45:17:139983550134016:INFO:Enabling telnet binary xmit 2021-05-02 10:45:17:139983550134016:DEBUG:Sending NVT command: WILL 0 2021-05-02 10:45:17:139983550134016:DEBUG:Data available on socket 2021-05-02 10:45:17:139983550134016:TRACE:IP<-|0000|ff fb 00 |... |

If you still need a log file, send me a command line that will work, I have tried everything I can think of.. I am at a loss here.. LOL sorry...

go4retro commented 3 years ago

:-) tcpser -l 7 -tsSiI -L logfile.txt Should do the trick

Those look like actual NVT commands. Can you describe more fo the setup? Who is calling, and what term are they using? How are they connecting to you?

bucko219 commented 3 years ago

It is either Image BBS or C-Net 128 v7,2+ both do it, I can reproduce it running the Term program Netrunner.. I just tested it with SyncTerm and it doesn't do it.. My guess is Netrunner is causing this issue. I am going to check to see if there is a newer version of Netrunner..

bucko219 commented 3 years ago

Yup just found a newer version of Netrunner.. It works fine.. So I have to blame that.. Sorry to have bothered you with this... At least I learned the proper way to create a logfile.. ;)

go4retro commented 3 years ago

I'm glad you were able to address the issue. Happy to (attempt to) help :-)