Fix pkg ssh client: to protocol exchange in blocking mode and read the package in non blocking mode
modified libpkg/fetch.c
@@ -179,11 +179,11 @@ ssh_read(void *data, char *buf, int len)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -224,7 +224,7 @@ ssh_writev(int fd, struct iovec *iov, int iovcnt)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -329,11 +329,6 @@ start_ssh(struct pkg_repo *repo, struct url *u, off_t *sz)
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
@@ -379,28 +374,34 @@ start_ssh(struct pkg_repo *repo, struct url *u, off_t *sz)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| - | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -413,6 +414,7 @@ start_ssh(struct pkg_repo *repo, struct url *u, off_t *sz)
|
|
|
|
|
|
| + | |
|
|
|
|
|