summaryrefslogtreecommitdiff
path: root/lib/server/SocketStream.cpp
Commit message (Collapse)AuthorAge
* New upstream version 0.13~~git20190527.g039c4a1Reinhard Tartler2019-05-28
|
* Define BOX_SOCKET_ERROR_MESSAGE, replace more BOX_LOG_SOCKET_ERROR calls ↵Chris Wilson2015-04-15
| | | | with it.
* Fix stupid typo on struct member names.Chris Wilson2014-12-06
|
* Add support for getsockopt(SO_PEERCRED) on OpenBSD 5.2.Chris Wilson2014-12-06
| | | | | | | | | | | OpenBSD requires different headers to be included, including a bug which makes it essential to include sys/param.h before sys/ucred.h, and gives the fields of struct ucred different names than Linux does. This fixes compilation on OpenBSD and allows the user connecting to a UNIX socket to be checked, increasing security of the command socket on this platform.
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Fix poll timeout calculation for infinite timeouts.Chris Wilson2014-08-15
|
* Fix deadlock waiting for read or write on closed connection.Chris Wilson2014-08-15
| | | | | | | | If the system is suspended then it may not realise that a TCP connection has been closed, while waiting for data to arrive on it. We didn't used to apply a timeout to this read operation. Now we use the connection's default timeout on all read and write operations. Network operations that don't pass a timeout will be logged with a backtrace, so that they can be fixed.
* Remove ServerException.h and the exception code aliases that it defines.Chris Wilson2014-08-15
| | | | We don't really need these, so clean up by removing them.
* Fix compilation on Debian 7 (Wheezy) by including bsd/unistd.h.Chris Wilson2014-04-12
| | | | | | | If libedit is installed then -ledit will be detected and added to the link line, which makes the test for getpeereid pass. Then SocketStream.cpp tries to use it, but that won't work unless we include bsd/unistd.h where the prototype is declared.
* Improve logging of socket errors (create, bind, accept, and poll)Chris Wilson2012-01-22
|
* Fix crash when freebsd (maybe *bsd) returns ECONNRESET on close(), whichChris Wilson2009-03-15
| | | | | | | | presumably means that the socket is already closed, causing bbackupd test to fail. Thanks to Victor Meirans for reporting the problem. See http://wiki.powerdns.com/cgi-bin/trac.fcgi/changeset/1280 and http://wiki.powerdns.com/cgi-bin/trac.fcgi/ticket/192 for example.
* Reset read and write closed state of a socket after Open() and Attach().Chris Wilson2009-01-03
|
* Don't blindly use an undefined symbol in #if.Chris Wilson2008-10-11
|
* Use getpeerucred() to identify connecting socket clients on Solaris,Chris Wilson2008-10-11
| | | | | | | | and silence warnings that the peer cannot be identified on this platform. Remove another use of uname -o which doesn't work on Solaris.
* Make Open() take a const std::string& for the socket name instead of a Chris Wilson2008-08-21
| | | | | const char *, for C++ style.
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* No need to save errno any more.Chris Wilson2008-03-29
|
* Close after logging socket error, so that we don't lose errno.Chris Wilson2008-03-29
|
* Improve logging with macros that consistently output strerror(errno) andChris Wilson2008-03-28
| | | | | | | | | | | | | | | errno, replacing almost all use of strerror() in the main code. Log a more detailed error message before throwing an exception for some more system call failures. Make FileStream store its filename on all platforms, not just Windows. Wrap some long lines at less than 80 characters to improve readability. Fix some minor violations of coding standard (white space) and a typo in a comment.
* Compile fix for MSVC (Gary) (merges [1861])Chris Wilson2007-10-17
|
* Report more useful error messages on connect() failure on Windows. Chris Wilson2007-10-17
| | | | | (merges [1851])
* Log reasons for failure to connect to a socket.Chris Wilson2007-06-28
|
* Use INVALID_SOCKET_VALUE instead of -1Chris Wilson2006-08-31
|
* Revert to trunkChris Wilson2006-08-31
|
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* Bandwidth usage logging patch from Pascal Lalonde <plalonde@overnet.qc.ca>, ↵Ben Summers2006-02-13
| | | | with minor change to exception handling
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Marged chris/win32/merge/07-win32-fixes at r210 to trunkMartin Ebourne2005-12-12
|
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14