]> arthur.barton.de Git - netatalk.git/commitdiff
Temporarily disable ECONNRESET detection, it causes primary reconnections failures
authorFrank Lahm <franklahm@googlemail.com>
Tue, 26 Jul 2011 09:02:52 +0000 (11:02 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Tue, 26 Jul 2011 09:02:52 +0000 (11:02 +0200)
etc/afpd/afp_dsi.c
include/atalk/dsi.h
libatalk/dsi/dsi_stream.c

index 0707aebcb81ab8b0b5973699eafb589a21353ef3..c59272ff0c7a03b0586deecf02e39f7d0126c14d 100644 (file)
@@ -500,12 +500,14 @@ void afp_over_dsi(AFPObj *obj)
                 exit(0);
             }
 
+#if 0
             /*  got ECONNRESET in read from client => exit*/
             if (dsi->flags & DSI_GOT_ECONNRESET) {
                 LOG(log_note, logtype_afpd, "afp_over_dsi: client connection reset");
                 afp_dsi_close(obj);
                 exit(0);
             }
+#endif
 
             if (dsi->flags & DSI_RECONINPROG) {
                 LOG(log_note, logtype_afpd, "afp_over_dsi: failed reconnect");
index 6c8236d750992e84c03db2e0f28fe0ee49d27f47..aed01816986778476b56774485216ec0703eb3cf 100644 (file)
@@ -159,7 +159,9 @@ typedef struct DSI {
 #define DSI_RECONSOCKET      (1 << 7) /* we have a new socket from primary reconnect */
 #define DSI_RECONINPROG      (1 << 8) /* used in the new session in reconnect */
 #define DSI_AFP_LOGGED_OUT   (1 << 9) /* client called afp_logout, quit on next EOF from socket */
+#if 0
 #define DSI_GOT_ECONNRESET   (1 << 10) /* got ECONNRESET from client => exit */
+#endif
 
 /* basic initialization: dsi_init.c */
 extern DSI *dsi_init (const dsi_proto /*protocol*/,
index a2a5872224188681f9da53b513913be37fed48cc..5630f07dddfe806b2b12296720552047200cdbd4 100644 (file)
@@ -390,8 +390,10 @@ size_t dsi_stream_read(DSI *dsi, void *data, const size_t length)
           stored += len;
       } else { /* eof or error */
           /* don't log EOF error if it's just after connect (OSX 10.3 probe) */
+#if 0
           if (errno == ECONNRESET)
               dsi->flags |= DSI_GOT_ECONNRESET;
+#endif
           if (len || stored || dsi->read_count) {
               if (! (dsi->flags & DSI_DISCONNECTED)) {
                   LOG(log_error, logtype_dsi, "dsi_stream_read: len:%d, %s",