forked from wesleyd/charade
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume that data will come all in one read().
It was easier when we could assume this. Unfortunately, either ssh clients don't send data all in one write(), or cygwin messes around with the sockets. Either way, messages can come in multiple read()'s and we now cope with that.
- Loading branch information
Showing
5 changed files
with
276 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
o Messages can come off the socket in two parts. Darn. Work properly | ||
when we don't get a full message. | ||
o Copyright stuff | ||
o Install as ssh-agent | ||
o Work with keychain | ||
o Rationalise debug output | ||
o TODO() format + exit macro | ||
o Deal with partial messages from ssh - unlikely, but catastrophic! | ||
+ Look at length at beginning, block until length arrives. | ||
o Work on debug output | ||
o Check open files in each process that results | ||
o Signal handling | ||
o Specified agent socket | ||
o Redirect stderr (& stdout?) to log even 'pon fork | ||
o Deal with revents=0x8 | ||
o Why don't we remove ssh directory when finished??? | ||
o Redirect stderr (& stdout?) to *not* log if told not to | ||
o Do we remove ssh directory when finished??? (Signals!) | ||
o Check 64-bit cygwin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.