<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.network.ssh.libssh2.devel">
    <title>gmane.network.ssh.libssh2.devel</title>
    <link>http://blog.gmane.org/gmane.network.ssh.libssh2.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5875"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5873"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5864"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5863"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5860"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5857"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5853"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5852"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5844"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5843"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5837"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5828"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5821"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5816"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5807"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5806"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5801"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5800"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5794"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5792"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5875">
    <title>Blocking/non-blocking and session disconnect</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5875</link>
    <description>&lt;pre&gt;Hallo.

I've been experimenting with ssh2_exec.c, and while reading the
mailing list "sftp functions leaking memory?" thread, I realized this
example may suffer from the same problem.

On line 142, we've got this:
---
    /* tell libssh2 we want it all done non-blocking */
    libssh2_session_set_blocking(session, 0);
---

Then, on the "shutdown" tag, we've got this:
---
shutdown:

    libssh2_session_disconnect(session,

                               "Normal Shutdown, Thank you for playing");
    libssh2_session_free(session);
---

AFAICT, blocking is still off, so shutdown should be like this:
---
shutdown:

    while (libssh2_session_disconnect(session, "Normal Shutdown, Thank
you for playing") == LIBSSH2_ERROR_EAGAIN)
              ;

    while (libssh2_session_free(session) == LIBSSH2_ERROR_EAGAIN)
              ;
---

I've added no error cheking. Looking at session_disconnect() in
session.c, I was left with the impression that it only returns an
error if description (reason for disconnection) length &amp;gt;&lt;/pre&gt;</description>
    <dc:creator>Paulo Caetano</dc:creator>
    <dc:date>2012-05-26T18:18:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5873">
    <title>Permissions problem with mod_sftp</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5873</link>
    <description>&lt;pre&gt;Hi Guys,
We've run into a curious problem with libssh2 (1.4.1) with users using proFTPD (1.3.4) and mod_sftp.  What is happening is when we open a remote handle for *reading* like so:

remoteHandle = libssh2_sftp_open(session, file, LIBSSH2_FXF_READ, 0);

The server wipes out the file permissions.  I.e., sets them to 000.  According to the docs, if the file exists on disk it should ignore the mode bits.  But it seems not to be the case.

We've tracked it back to the server config setting IgnoreSFTPUploadPerms, if this is set to yes, everything is fine.  This seems like an pretty obvious server-side issue; *however* it works correctly using openssh's sftp client.  

Before I continue tracking this down, do you guys have any ideas what the differences would be between openssh's sftp implementation and libssh2 which would be causing this?

Thanks,
Will



_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

&lt;/pre&gt;</description>
    <dc:creator>Will Cosgrove</dc:creator>
    <dc:date>2012-05-25T19:42:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5864">
    <title>example ssh2: failed to connect</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5864</link>
    <description>&lt;pre&gt;I have tried running the example ssh2. When I do I get a failed to connect
error which is triggered by the connect() method. How can I fix this? thank
you.

&lt;/pre&gt;</description>
    <dc:creator>Jamie Lahowetz</dc:creator>
    <dc:date>2012-05-24T15:46:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5863">
    <title>Invitation to connect on LinkedIn</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5863</link>
    <description>&lt;pre&gt;LinkedIn
------------



I'd like to add you to my professional network on LinkedIn.

- Thabelo

Thabelo Mmbengeni
zapop web developer at zapop
Cape Town Area, South Africa

Confirm that you know Thabelo Mmbengeni:
https://www.linkedin.com/e/-xsrtcs-h2ljyr0e-2h/isd/7222060233/Gt85iP45/?hs=false&amp;amp;tok=3WC0BYi1tReRg1

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-xsrtcs-h2ljyr0e-2h/w59Vklj28IgCxIYX6PUXddnnqwX24d6uFSCG82WU/goo/libssh2-devel%40cool%2Ehaxx%2Ese/20061/I2459270622_1/?hs=false&amp;amp;tok=2sC2tOO55ReRg1

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
&lt;/pre&gt;</description>
    <dc:creator>Thabelo Mmbengeni</dc:creator>
    <dc:date>2012-05-24T08:21:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5860">
    <title>Error Receiving a File  SCP</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5860</link>
    <description>&lt;pre&gt;I am able to connect     But Unable to receive a File
Using the same code as   example/scp.c   (tried even the scp_nonblock.c)

Trace taken  from  the working  example/scp.c

Read B  lines come from  my trace additions to   transport.c       _libssh2_transport_read    Function

Read B 2  just before   if (session-&amp;gt;state &amp;amp; LIBSSH2_STATE_NEWKEYS) {
Read B 3  just after   remainbuf = p-&amp;gt;writeidx - p-&amp;gt;readied;   prints  writeidx  and readidx   values
Read B 3 just before   if (remainbuf &amp;lt; blocksize) {            prints  remainbuf and blocksize values
Read B 3 A inside       if (remainbuf &amp;lt; blocksize) {            prints  remainbuf value
Read B 3 B  just before  nread = LIBSSH2_RECV(session, &amp;amp;p-&amp;gt;buf[remainbuf], PACKETBUFSIZE - remainbuf,  ...
Read B 3 C  right after the    nread = LIBSSH2_RECV(session, 

=====  ….   ====  sections  appear during scp.c  execution which works
but NOT during my execution

Code STOPS in the LIBSSH2_RECV  function  

Any Help Please !  !

Thanks in advance

::  [libssh2] 0.919596 Tr&lt;/pre&gt;</description>
    <dc:creator>Barry Fawthrop</dc:creator>
    <dc:date>2012-05-23T12:09:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5857">
    <title>[PATCH] Corrected error checking on socket creation</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5857</link>
    <description>&lt;pre&gt;From dd644ca2526e8e5cf64121f53664d2804600b325 Mon Sep 17 00:00:00 2001
From: Paulo Caetano &amp;lt;paulo.a.o.caetano-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Date: Wed, 23 May 2012 12:03:19 +0100
Subject: [PATCH] Corrected error checking on socket creation

---
 ssh2_multiexec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssh2_multiexec.c b/ssh2_multiexec.c
index 18fe79b..5bc341f 100644
--- a/ssh2_multiexec.c
+++ b/ssh2_multiexec.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -218,7 +218,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int main(int argc, char *argv[])
      */
     sock = socket(AF_INET, SOCK_STREAM, 0);
 
-if (socket == -1)
+if (sock == -1)
 perror("Create socket");

     sin.sin_family = AF_INET;
&lt;/pre&gt;</description>
    <dc:creator>Paulo Caetano</dc:creator>
    <dc:date>2012-05-23T11:43:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5853">
    <title>Understanding Key Orders</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5853</link>
    <description>&lt;pre&gt;Trying to understand where (which file(s) )  on the client side   sets the Key order

::   [libssh2] 0.245000 Key Ex: Sent KEX: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
::   [libssh2] 0.245000 Key Ex: Sent HOSTKEY: ssh-rsa,ssh-dss
::   [libssh2] 0.245000 Key Ex: Sent CRYPT_CS: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc-SamgB31n2u5IcsJQ0EH25Q&amp;lt; at &amp;gt;public.gmane.org,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
::   [libssh2] 0.245000 Key Ex: Sent CRYPT_SC: aes128-ctr,aes192-ctr,aes256-ctr,aes256-cbc,rijndael-cbc-SamgB31n2u5IcsJQ0EH25Q&amp;lt; at &amp;gt;public.gmane.org,aes192-cbc,aes128-cbc,blowfish-cbc,arcfour128,arcfour,cast128-cbc,3des-cbc
::   [libssh2] 0.245000 Key Ex: Sent MAC_CS: hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160&amp;lt; at &amp;gt;openssh.com


How can I change or re-order the  CRYPT_CS  and CRYPT_SC  Order   
Also to add or remove ones


Thanks  in advance_______________________________________________
libssh2-de&lt;/pre&gt;</description>
    <dc:creator>Barry Fawthrop</dc:creator>
    <dc:date>2012-05-22T17:13:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5852">
    <title>[PATCH] Added LIBSSH2_ERROR_EAGAIN tests to nonblocking examples.</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5852</link>
    <description>&lt;pre&gt;Hi again,

I've made the patch for all the nonblocking examples. Basically, I've
checked the libssh2 calls on each program and, if they can return
EAGAIN, make it loop until the return code is other than EAGAIN.

This is my first patch so please tell me if I did something wrong :)

Thanks.

--
Marta
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
&lt;/pre&gt;</description>
    <dc:creator>Marta</dc:creator>
    <dc:date>2012-05-22T10:40:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5844">
    <title>[PATCH] libgcrypt does not provide pkg-config support</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5844</link>
    <description>&lt;pre&gt; From 6b8a3edae23dc93cc02e6c9572d0796e338ddc4f Mon Sep 17 00:00:00 2001
From: Mark Brand &amp;lt;mabrand-Caog9qLlAxTz+pZb47iToQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt;
Date: Sat, 19 May 2012 10:40:36 +0200
Subject: [PATCH] libgcrypt does not provide pkg-config support

Commits 04692445d4a32430610ccf8c256e18245cbb3e06
and e887a8bd0f043fd49e9119756858e75e82dee504 add
'libgcrypt' to Requires.private of libssh2.pc
file, but libgcrypt does not provide a .pc file, so
this does not work.
---
  configure.ac |    1 -
  1 file changed, 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index aa9d397..0d35a27 100644
--- a/configure.ac
+++ b/configure.ac
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -102,7 +102,6 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; fi
  # Look for libgcrypt
  if test "$ac_cv_libssl" != "yes" &amp;amp;&amp;amp; test "$use_libgcrypt" != "no"; then
    AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [#include &amp;lt;gcrypt.h&amp;gt;])
-  LIBSREQUIRED=libgcrypt
  fi

  AC_SUBST(LIBSREQUIRED)
&lt;/pre&gt;</description>
    <dc:creator>Mark Brand</dc:creator>
    <dc:date>2012-05-19T08:54:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5843">
    <title>ANNOUNCE: libssh2 1.4.2 is out!</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5843</link>
    <description>&lt;pre&gt;Hi friends,

I just uploaded the 1.4.2 release, go get it from http://www.libssh2.org/

This release includes the following bugfixes:

  o Return LIBSSH2_ERROR_SOCKET_DISCONNECT on EOF when reading banner
  o userauth.c: fread() from public key file to correctly detect any errors
  o configure.ac: Add option to disable build of the example applications
  o Added 'Requires.private:' line to libssh2.pc
  o SFTP: filter off incoming "zombie" responses
  o gettimeofday: no need for a replacement under cygwin
  o SSH_MSG_CHANNEL_REQUEST: default to want_reply
  o win32/libssh2_config.h: Remove hardcoded #define LIBSSH2_HAVE_ZLIB

This release would not have looked like this without help, code, reports and
advice from friends like these:

  Alexander Lamaison, Rafael Kitover, Guenter Knauf, Peter Stuge,
  Oleksiy Zagorskyi

         Thanks! (and sorry if I forgot to mention someone)

&lt;/pre&gt;</description>
    <dc:creator>Daniel Stenberg</dc:creator>
    <dc:date>2012-05-18T21:37:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5837">
    <title>sftp functions leaking memory?</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5837</link>
    <description>&lt;pre&gt;Hi,

Let's see if you can enlighten my day :)

A bit of background: I'm working with an embedded system[1] and I
needed a library to manage sftp transfers that need to be done
periodically, so I used libssh2. Everything was going smooth until I
realized the process was eating memory, around 2 MB a day. That's not
a big deal on a bigger system, but having only 64 MB of RAM, in my
case that is a problem.

I reviewed my code, and having not found any error, I tried to make
some measurements with one of the examples. I modified the non
blocking sftp example to operate in a loop (see attachment, if you
want to compile it you will have to change the pmemlog string to match
your system, and include the right libssh2_config.h). After 433
iterations, I made a graph of the heap size. The heap growth is almost
linear, and it does not seem to stabilize. Another interesting thing
is that the heap does not grow on each iteration. You can see the
details on the attached spreadsheet.

More data:
- I've already searched the &lt;/pre&gt;</description>
    <dc:creator>Marta</dc:creator>
    <dc:date>2012-05-18T10:34:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5828">
    <title>Unable to link with OpenSSL libraries under Cygwin</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5828</link>
    <description>&lt;pre&gt;Hello,

I'm having trouble building the library. I'm using libssh2-1.4.1 and
openssl-1.0.1c, and gcc v4.5.3 using Cygwin
I built the SSL library the other day, and it passed all its self-tests,
and links/runs fine with a basic test program.
When libssh2 tries to link with it, I get the following errors.

/bin/sh ../libtool --tag=CC --mode=link gcc  -DLIBSSH2_WIN32    -o
libssh2.la -rpath /usr/local/ssh2/lib -version-info 1:1:0 -no-undefined
-export-symbols-regex '^libssh2_.*'   -L/usr/local/ssl/lib -lssl
-L/usr/local/ssl/lib -lcrypto  channel.lo comp.lo crypt.lo hostkey.lo
kex.lo mac.lo  misc.lo packet.lo publickey.lo scp.lo session.lo sftp.lo
userauth.lo transport.lo version.lo knownhost.lo agent.lo  openssl.lo
libgcrypt.lo pem.lo keepalive.lo global.lo

*** Warning: linker path does not have real file for library -lssl.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do&lt;/pre&gt;</description>
    <dc:creator>Alex Rolfe</dc:creator>
    <dc:date>2012-05-18T02:29:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5821">
    <title>Example suggestion - ssh2_exec.c</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5821</link>
    <description>&lt;pre&gt;Hallo.

I've started a small project that involves connecting to a remote host
via ssh2 and executing several commands.

I've done some searching, and while I didn't find any working example,
I did find several answers to similar questions that mentioned
ssh2_exec.c, in the examples.

So, I've made a small adaptation of the ssh2_exec.c example, to
execute several commands on the remote host, instead of just one.

The code is the same, I've just isolated the channel life cycle &amp;amp;
command execution in a separate function, and added code to read a
list of commands from a file and execute them sequentially.

If you think this is useful/relevant to add to the examples, I'll
gladly submit it.

Last, but not least, a great "thank you" to everyone involved in
manintaining libssh2.

Thanks.
Paulo Caetano.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

&lt;/pre&gt;</description>
    <dc:creator>Paulo Caetano</dc:creator>
    <dc:date>2012-05-17T15:00:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5816">
    <title>time for another release</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5816</link>
    <description>&lt;pre&gt;Hi

I have seven bug fixes noted in RELEASE-NOTES right now so I'll put together 
another release within a couple of days.

If anyone else wants something else done before the next release, please 
proceed or tell us.

&lt;/pre&gt;</description>
    <dc:creator>Daniel Stenberg</dc:creator>
    <dc:date>2012-05-15T08:52:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5807">
    <title>#238: Make fails in function gettimeofday</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5807</link>
    <description>&lt;pre&gt;#238: Make fails in function gettimeofday
-------------------------------+------------------
 Reporter:  rtoguchi           |       Owner:
     Type:  defect             |      Status:  new
 Priority:  normal             |   Milestone:
Component:  API                |     Version:
 Keywords:  make gettimeofday  |  Blocked By:
   Blocks:                     |
-------------------------------+------------------
 Hi,
 I'm trying to manually install libssh2 in Cygwin.
 When executing make, the following message is received:

 ''misc.c: In function ‘_libssh2_gettimeofday’:
 misc.c:596:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’
 before ‘ns100’
 misc.c:602:37: error: ‘union &amp;lt;anonymous&amp;gt;’ has no member named ‘ft’
 misc.c:603:31: error: ‘union &amp;lt;anonymous&amp;gt;’ has no member named ‘ns100’
 misc.c:604:31: error: ‘union &amp;lt;anonymous&amp;gt;’ has no member named ‘ns100’
 Makefile:396: recipe for target `misc.lo' failed
 make[2]: *** [misc.lo] Error 1
 make[2]: Saindo do&lt;/pre&gt;</description>
    <dc:creator>libssh2 Trac</dc:creator>
    <dc:date>2012-05-14T17:53:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5806">
    <title>#237: configure -DLIBSSH2_WIN32 &lt; at &gt;cygwin</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5806</link>
    <description>&lt;pre&gt;#237: configure -DLIBSSH2_WIN32 &amp;lt; at &amp;gt;cygwin
------------------------------+--------------------
 Reporter:  flederwiesel      |       Owner:
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:  1.4.0
Component:  misc              |     Version:  1.3.0
 Keywords:  cygwin configure  |  Blocked By:
   Blocks:                    |
------------------------------+--------------------
 The configure script wrongly defines -DLIBSSH2_WIN32 for cygwin, which
 leads to _libssh2_gettimeofday() being defined, which is not needed, since
 cygwin has its own gettimeofday() and - what is worse - does not compile,
 if you do not provide win32 api FILETIME and GetSystemTimeAsFileTime().

 A patch, which at least worked for my configuration, is attached.

&lt;/pre&gt;</description>
    <dc:creator>libssh2 Trac</dc:creator>
    <dc:date>2012-05-14T17:53:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5801">
    <title>When does read block?</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5801</link>
    <description>&lt;pre&gt;
With typical BSD sockets, if you do a read() and the other end hasn't written anything, read will block forever. With libssh2's channel_read, if the other end hasn't written anything, it doesn't block, it just returns 0 immediately, even after successive calls. (This is on OS X.)

So when exactly does channel_read block? I'm trying to determine exactly if when I should call read(). i.e., if I'm executing an arbitrary command from the user, if it's going to block because there is no output, I don't want to call it.

Example:


channel = libssh2_channel_open_session(session);
libssh2_channel_set_blocking(channel, 1);
libssh2_channel_exec(channel, "touch 'test.tmp'");
libssh2_channel_eof(channel); // 0
libssh2_channel_read(channel, buffer, bufferSize); // 0, no blocking
libssh2_channel_eof(channel); // 1
libssh2_channel_read(channel, buffer, bufferSize); // 0, no blocking
... etc ...


Reading the documentation and code for libssh2_channel_read_ex, it's not clear when it would return 0 versus actually block an&lt;/pre&gt;</description>
    <dc:creator>Seth Willits</dc:creator>
    <dc:date>2012-05-09T23:52:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5800">
    <title>sftp_read degrading performance</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5800</link>
    <description>&lt;pre&gt;It seems all is not quite right with our old friend sftp_read.

It is very unhappy reading from files with a buffer bigger than the
file.  In these cases is actually *sends* more than it receives.  When
reading a sequence of such files, the reads get successively slower
after each file is opened, read and closed.  Using the very scientific
method of stopping the debugger many times at random, it seems to be
spending most of its time in sftp_packetlist_flush.

My guess is that we are sending vastly more read-ahead requests than
we should.  The number we send is based on the buffer size but capped
to LIBSSH2_CHANNEL_WINDOW_DEFAULT*4 (1MB).  What I don't understand is
why this causes more of a problem the more files we try to read.  If
it's a problem, fine, but surely it's a constant problem?

I've attached the script I'm using to reproduce the results.  Execute
it as `libssh2_bigread ip_address username password
/path/to/small/file`.  The script opens, reads and closes that small
file repeatedly, forever.

The&lt;/pre&gt;</description>
    <dc:creator>Alexander Lamaison</dc:creator>
    <dc:date>2012-05-08T01:32:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5794">
    <title>Getting no identities from ssh-agent</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5794</link>
    <description>&lt;pre&gt;

When I run the ssh2_agent.c example on the site, I always get 0 entities back from libssh2_agent_list_identities / libssh2_agent_get_identity. I am pretty certain ssh-agent works fine on my system because it's used by other programs to do ssh connections.

Any ideas how can I figure out what's going on?


(Running OS X 10.7)

--
Seth Willits




_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

&lt;/pre&gt;</description>
    <dc:creator>Seth Willits</dc:creator>
    <dc:date>2012-05-03T03:58:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5792">
    <title>EINTR treatment at session.c/ _libssh2_wait_socket()</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5792</link>
    <description>&lt;pre&gt;Dear all,

thanks to your help I was able to find a workaround for my problem, being
in relation to Haskell and maybe other languages emitting signals that may
interfere libssh2 processing (info thanks to Edward Z. Yang):

http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/Signals

This problem seems to be solved by a very small modification (diff file is
attached):

663,664c663,666
&amp;lt;         session-&amp;gt;err_code = LIBSSH2_ERROR_TIMEOUT;
&amp;lt;         return LIBSSH2_ERROR_TIMEOUT;
---

Pondering the operational semantics of  _libssh2_wait_socket() now, with
the impression that an EINTR usually would be regarded as a transient
incident, I am asking myself in how far not aborting at EINTR might violate
the intended behavior in any way.

If there were no objections, an introduction to the code base would be
great – especially on Windows, where a necessity to compile often means a
considerable amount of effort.

Thanks a lot for your support, Nick
_______________________________________________
libssh2-devel htt&lt;/pre&gt;</description>
    <dc:creator>Nick Rudnick</dc:creator>
    <dc:date>2012-04-30T09:31:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5790">
    <title>SFTP using libSSH2</title>
    <link>http://comments.gmane.org/gmane.network.ssh.libssh2.devel/5790</link>
    <description>&lt;pre&gt;Hello,

 

I'm using libSSH2 for connecting to remote server with SFTP protocol. I
doing it using Curl that use OpenSSL and libssh2.

I need to know which bug\change causing me to succeed to connect to the
target server, after upgrading the libssh2 version from version 1.1.

 

When I using curl.exe (7.19.4) and OpenSSL(0.8.9) and LibSSH2(1.1) 
I get the error: 
curl: (79) Could not open directory for reading: Unknown error in
libssh2. 

When trying to connect with curl.exe (7.19.4)  and OpenSSL(0.8.9) and
upgrade the LibSSH2(1.2.7\1.4) 
I success to connect.

 

Target Server information:

operating system :OpenVMS. 
SSH server : TCPWare 
SSH version : SSH2. 
Extra info: standard SSH over the standard port

 

What where the problem in LibSSH2 ver 1.1 ? Is it connected to the
server type I'm using? Or it something else?

 

Thanks!

Michal

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
&lt;/pre&gt;</description>
    <dc:creator>Michal Lev</dc:creator>
    <dc:date>2012-04-29T08:57:13</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.network.ssh.libssh2.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.network.ssh.libssh2.devel</link>
  </textinput>
</rdf:RDF>

