diff --git a/include/afpfs-ng/dsi.h b/include/afpfs-ng/dsi.h index a162842..ff98423 100644 --- a/include/afpfs-ng/dsi.h +++ b/include/afpfs-ng/dsi.h @@ -33,6 +33,7 @@ int dsi_recv(struct afp_server * server); //a spun down time capsule can take up to 20 secs to //wake up and reply to a mount request #define DSI_OPENVOLUME_TIMEOUT 20 +#define DSI_LOGIN_TIMEOUT 20 #endif diff --git a/lib/proto_login.c b/lib/proto_login.c index b48745c..d6b2bf2 100644 --- a/lib/proto_login.c +++ b/lib/proto_login.c @@ -171,7 +171,7 @@ int afp_logincont(struct afp_server *server, unsigned short id, request->id = htons(id); memcpy(p, userauthinfo, userauthinfo_len); - ret = dsi_send(server, (char *)msg, len, DSI_DEFAULT_TIMEOUT, + ret = dsi_send(server, (char *)msg, len, DSI_LOGIN_TIMEOUT, afpLoginCont, (void *)rx); free(msg);