]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/socket.c
Merge 2-1
[netatalk.git] / libatalk / util / socket.c
index 8c27c09a80b41a0544f6efd795fb45c84d6c703c..528b2646bcfe2885bd2c0450b61b4429825f1082 100644 (file)
@@ -87,7 +87,7 @@ int setnonblock(int fd, int cmd)
  *                             io mode for the socket
  * @param timeout         (r)  number of seconds to try reading
  *
- * @returns number of bytes actually read or -1 on fatal error
+ * @returns number of bytes actually read or -1 on timeout or error
  */
 ssize_t readt(int socket, void *data, const size_t length, int setnonblocking, int timeout)
 {
@@ -123,7 +123,7 @@ ssize_t readt(int socket, void *data, const size_t length, int setnonblocking, i
                 while ((ret = select(socket + 1, &rfds, NULL, NULL, &tv)) < 1) {
                     switch (ret) {
                     case 0:
-                        LOG(log_warning, logtype_afpd, "select timeout %d s", timeout);
+                        LOG(log_debug, logtype_afpd, "select timeout %d s", timeout);
                         errno = EAGAIN;
                         goto exit;