Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [sockutil] Handle EINTR in send/recv_packet | Nathan Straz | 2014-08-20 | 1 | -0/+4 |
| | | | | | | | When we caused system calls not to be restarted on SIGCHLD for select() in qarshd, we also allowed all system calls to be interrupted, including read() and write() in recv/send_packet(). Go back through the loop when we are interrupted. | ||||
* | [sockutil] Rewrite send_packet() so it retries | Nathan Straz | 2014-08-20 | 1 | -11/+24 |
| | | | | | | If the writev() returned less than expected, we would never check it. In order to make retrying the write simpler, I modelled the new send_packet() after recv_packet(). | ||||
* | Handle errors better in qacp | Nathan Straz | 2013-10-02 | 1 | -2/+0 |
| | | | | | | | Pass errors up from the transfer functions so we can keep track of errors and continue trying to transfer all files. Make output more consistent and all on stderr. | ||||
* | Add reasonable log priorities | Nathan Straz | 2013-09-19 | 1 | -4/+4 |
| | |||||
* | Creat a thin logging layer | Nathan Straz | 2013-09-19 | 1 | -4/+7 |
| | | | | | | | When qarshd is run via xinetd, stderr still goes out the socket and messages from sockutil.c or qarsh_packet.c can interfere with the protocol. Create a thin wrapper which qacp and qarsh can send to stderr and qarshd can send to syslog. | ||||
* | Clean up compiler warning on psbuf | Nathan Straz | 2013-09-19 | 1 | -2/+2 |
| | |||||
* | Add a loop around getting the packet size | Nathan Straz | 2013-09-17 | 1 | -10/+11 |
| | | | | Believe it or not, we can get short reads here. | ||||
* | Remove unused utility functions | Nathan Straz | 2013-09-17 | 1 | -101/+0 |
| | |||||
* | Remove complicated remote file descriptor code | Nathan Straz | 2013-09-11 | 1 | -10/+12 |
| | | | | | | | | Only handle one file transfer at a time so we don't need an array to track multiple transfers or know the remote's fd number. Loop in recv_packet until we read a whole packet. | ||||
* | Get qacp local to remote working on main socket | Nathan Straz | 2013-09-11 | 1 | -49/+33 |
| | | | | | | | | | | I removed the buffering layer from recv_packet because it made the logic too complex around the pselect in qarshd. Now only read as much as needed to get each packet. qarshd adds an array for remote file descriptors which is only a stub for now. This needs to be expanded to allow multiple file transfers at the same time for runcmd. | ||||
* | Move packet sequence numbering to send_packet | Nathan Straz | 2013-09-11 | 1 | -1/+4 |
| | |||||
* | Convert packet parsing | Nathan Straz | 2013-09-11 | 1 | -1/+1 |
| | |||||
* | Rewrite qptostr to store binary bits into an existing buffer | Nathan Straz | 2013-09-11 | 1 | -11/+11 |
| | |||||
* | Start by adding a packet size to the existing protocol | Nathan Straz | 2013-09-11 | 1 | -9/+54 |
| | |||||
* | Pass hints into getaddrinfo | Nathan Straz | 2012-04-19 | 1 | -1/+1 |
| | | | | | Without the hints we could end up creating a non-stream socket which would cause qarsh to hang reading the packet in set_remote_user(). | ||||
* | Merge branch 'ipv6' of ssh://sts-a//home/msp/djansa/src/git/qarsh into ipv6 | Nathan Straz | 2010-09-30 | 1 | -30/+98 |
|\ | | | | | | | | | | | Conflicts: qarsh.c sockutil.c | ||||
| * | First crack at ipv6/ipv4 agnostic qarsh/qacp. | Dean Jansa | 2010-09-28 | 1 | -30/+99 |
| | | |||||
* | | Cache last used port in bind_any | Nathan Straz | 2010-09-29 | 1 | -0/+10 |
|/ | | | | This way we don't try to bind to ports we already checked | ||||
* | Fix Copyright lines. vi sure doesn't like that copyright symbol in my term | Dean Jansa | 2008-09-23 | 1 | -1/+1 |
| | |||||
* | Plug some memory leaks | Dean Jansa | 2008-09-23 | 1 | -4/+2 |
| | |||||
* | Add copyright notices and GPL header | Nate Straz | 2008-09-23 | 1 | -0/+19 |
| | |||||
* | Use the same size buffer for holding the send packet as the receive packet. | Nate Straz | 2008-09-23 | 1 | -2/+2 |
| | |||||
* | Set close on exec flag on our sockets in connect_to_peer() | Dean Jansa | 2008-09-23 | 1 | -0/+13 |
| | |||||
* | Fix memory leak in send_packet | Nate Straz | 2008-09-23 | 1 | -1/+4 |
| | |||||
* | Flatten the qarsh tree. | Nate Straz | 2008-09-23 | 1 | -0/+119 |