Re: [PATCH v2 0/1] RFC: add ssh_buffer_ensure_allocated

2018-07-06 Thread Andreas Schneider
On Wednesday, 27 June 2018 14:10:25 CEST Pino Toscano wrote: > Hi, > > while profiling libssh, I noticed that in different places ssh_buffer's > were realloc'ed more than once during their lifetime. Since in few cases > the amount of data is known in advance, I added a small helper to make > sure

RE: possible issue with bsd_poll() on Windows

2018-07-06 Thread John Dunn
On Friday, July 6, 2018 12:22 AM Andreas Schneider wrote: > So I think this is what you need to do, setting the right errno > (ECONNREFUSED) for WSAECONNREFUSED and return -1. I don't think it's that simple. Given the code at the end of the bsd_poll loop that increments rc if any bits beyond PO