[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: non-blocking server api


On Saturday, 18 March 2017 01:36:12 CEST Prashanth Mundkur wrote:
> Hello libssh maintainers,
> 
> Would it be possible for you to review the patches and example pointed
> to below?  I'm happy to fix any issues you find and send patches for
> merging.

Aris, could you please take a look?
 
> thanks,
> 
> --prashanth
> 
> On 16:00 Wed 15 Mar, Prashanth Mundkur wrote:
> > Hi,
> > 
> > I've been trying to build a simple non-blocking ssh server.
> > 
> > I tried to use ssh_bind_accept, but it seems to block.
> > 
> > I found that with a single new api, I could build one.  I'd like to
> > request comment, and whether I should formally send patches.
> > 
> > The commit with the new api function is:
> > 
> > https://github.com/pmundkur/libssh/commit/3f0b8c0f30d869d57b4dc813a84877d9
> > 174a15cd
> > 
> > and an accompanying fix:
> > https://github.com/pmundkur/libssh/commit/df0fd2707c070e5f51ba3d68a8db6944
> > 65eced0e
> > 
> > With this, an example of a fully non-blocking non-forking
> > callback-based server is here:
> > 
> > https://github.com/pmundkur/libssh/blob/a4e8c2857c11192d14f2039b4d9063307a
> > b8f13d/examples/sshd-cb.c
> > 
> > Thanks,
> > 
> > --prashanth


-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Archive administrator: postmaster@lists.cynapses.org