increase login timeout

This commit is contained in:
Simon Vetter 2013-03-13 17:56:43 -07:00
parent fac89c1978
commit 24e186b686
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);