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

Fix for #5 #6

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Fix for #5 #6

wants to merge 15 commits into from

Conversation

vpicaver
Copy link
Contributor

@vpicaver vpicaver commented Jul 6, 2021

Moved Ssh2Channel.h and Ssh2Debug.h to src/include

Moved Ssh2Channel.h and Ssh2Debug.h to src/include
This removes the reference counting on libssh2_init() and libssh2_exit()
If a instance of Ssh2Client is ever created, then connection is mad with QCoreApplication to exit libssh2 using libssh2_exit()
Switched from channel_send_eof() to channel_close() fixes the exitcode issue
@Jeruntu
Copy link
Owner

Jeruntu commented Jul 18, 2021

Thank you for all the PR's! Next week I'll have time to look at it.

vpicaver and others added 7 commits July 22, 2021 19:54
In Qt6 QIODevice now uses ringbuffer for reading data, they're allocated with setReadChannelCount(), which is qt private method.
Without setting the readChannelCount() connections aren't terminated and when reading stderr for process, QIODevice just crashes
when calling readAll().
The crash has to do with disconnection of signal and slots. Qt6 is more strict on using slots after objects have been
destroyed. I've changed the ssh2client deconstructor to wait until client is fully disconnected from the QTCPSocket.
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

Successfully merging this pull request may close these issues.

None yet

2 participants