Comments (6)
I removed the try catch in main and added a gdb backtrace
from cli.
Hi @inf265 ,
Thank you for using the library and reporting the issue. Although I don't have access to ARM to replicate the problem directly, I have some insights into what you've described.
The warning may be caused by the fact that the library is using:
auto ch = GetChar();
...
switch(ch) {
case EOF: ...
If, in your system, GetChar() returns an unsigned type and EOF has a negative value, it could trigger this warning. However, this would only affect the local session, not the remote one. Therefore, the abrupt closure of your telnet connection is likely not caused by this warning.
The exception in the main is thrown by Session::Disconnect():
virtual void Disconnect()
{
socket.shutdown(asiolib::ip::tcp::socket::shutdown_both);
socket.close();
}
This method is called by the exit action of a CliTelnetSession. So, something is causing the telnet session to close, leading to the subsequent exception. Investigating the root cause of the telnet session closing soon after the connection is essential.
You can try using a newer version of the asio library (or try with Boost) if you're using an older one. Additionally, experimenting with different telnet clients or connection options might provide more insights.
Please keep me informed if you gather new information.
from cli.
Related Issues (20)
- Feature EnterAction HOT 4
- HOME and END does not work properly in tmux. HOT 2
- Run short command without autocompletion
- Missing echo after paste of command HOT 3
- class asio::io_context::work’ has no member named ‘reset’ HOT 3
- can NOT connect telnet HOT 1
- find_package(cli) doesn't define cli_VERSION HOT 2
- The filesession.cpp example doesn't work
- command parser allows unclosed quoted strings (in the example complete.cpp) HOT 1
- Is it possible to pipe input?
- Dynamically change menu prompt
- Text pasted from the clipboard doesn'r get into the cli prompt HOT 1
- Getting command by name HOT 1
- Prompt label access HOT 3
- `CliLocalSession` waits for keypress when exiting HOT 4
- Is there any way to add options aftrer input data
- How to add internal command used to enter system shell
- How to specify optional arguments for a CLI handler?
- Add SubMenu class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.