commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhenliang Su (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (NET-654) auto add a LF before a command
Date Mon, 05 Feb 2018 02:27:00 GMT

    [ https://issues.apache.org/jira/browse/NET-654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16351993#comment-16351993
] 

Zhenliang Su edited comment on NET-654 at 2/5/18 2:26 AM:
----------------------------------------------------------

My OS is Microsoft windows.

My code is Main.java

[^Main.java]

^The net traffic I captured is TelnetClient.pcap^

^[^telnetClient.pcap]^

^!sendcr.png!^

^!sendb.png!^

 


was (Author: suzl):
My OS is microsoft windows.

My code is Main.java

[^Main.java]

^The net traffic I capturedis TelnetClient.pcap^

^[^telnetClient.pcap]^

^!sendcr.png!^

^!sendb.png!^

 

> auto add a LF before a command
> ------------------------------
>
>                 Key: NET-654
>                 URL: https://issues.apache.org/jira/browse/NET-654
>             Project: Commons Net
>          Issue Type: Bug
>          Components: Telnet
>    Affects Versions: 3.6
>         Environment: all environment 
>            Reporter: Zhenliang Su
>            Priority: Minor
>         Attachments: Main.java, sendb.png, sendcr.png, telnetClient.pcap
>
>
> I use TelnetClient to connect to my H3C router. When I type the first command, it's ok.
When I type the second command, TelnetClient automatically add a LF character before my second
command, i.e. send an empty command before my second command.
> I review the source code of TelnetOutputStream.java, in function write(int ch). When
I type the first character of my second command, variable __lastWasCR is true, variable __convertCRtoCRLF
is true, and because I set nothing of TelnetOption.BINARY, __client._requestedWont(TelnetOption.BINARY)
also returns true。 lead to cause my issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message