simplessh-rb 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/simplessh/simplessh.c +3 -4
  2. metadata +4 -4
@@ -343,10 +343,9 @@ struct simplessh_either *simplessh_send_file(
343
343
  }
344
344
  }
345
345
 
346
- libssh2_channel_send_eof(channel);
347
- libssh2_channel_wait_eof(channel);
348
- libssh2_channel_wait_closed(channel);
349
- libssh2_channel_free(channel);
346
+ while(libssh2_channel_send_eof(channel) == LIBSSH2_ERROR_EAGAIN);
347
+ while(libssh2_channel_close(channel) == LIBSSH2_ERROR_EAGAIN);
348
+ while(libssh2_channel_free(channel) == LIBSSH2_ERROR_EAGAIN);
350
349
  fclose(f);
351
350
  return either;
352
351
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplessh-rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tom Feron
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-12-11 00:00:00 +00:00
18
+ date: 2013-12-19 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency