Skip to content

Commit

Permalink
Add changelog fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrezina committed Feb 5, 2024
1 parent ec44667 commit 87fc2bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/changelog-fragments/576.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pylibssh no longer crashes when received EOF or when channel is not explicitly
closed -- by :user:`pbrezina`.

Previously, pylibssh crashed if ``channel.recv`` was called and ``libssh``
returned ``SSH_EOF`` error. It also crashed on some special occasions where
channel was not explicitly closed and the session object was garbage-collected
first.
4 changes: 4 additions & 0 deletions docs/changelog-fragments/576.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fixed the example of invoking remote commands by using
``Channel.exec_command()`` in snippets -- by :user:`pbrezina`.

Its previously showcased version wasn't functional.
7 changes: 7 additions & 0 deletions docs/changelog-fragments/576.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ``request_exec()`` method was added to the ``Channel`` class. It exposes an
interface for calling the respective low-level C-API of the underlying
``libssh`` library -- by :user:`pbrezina`.

Additionally, the following calls to ``libssh`` are now available in the same
class: ``request_exec()``, ``send_eof()``, ``request_send_signal()`` and
``is_eof`` which is exposed as a :py:class:`property`.

0 comments on commit 87fc2bd

Please sign in to comment.