Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178344918
D14332.1796539996.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
902 B
Referenced Files
None
Subscribers
None
D14332.1796539996.diff
View Options
Index: stand/libsa/tftp.c
===================================================================
--- stand/libsa/tftp.c
+++ stand/libsa/tftp.c
@@ -502,7 +502,7 @@
res = tftp_getnextblock(tftpfile);
if (res) { /* no answer */
#ifdef TFTP_DEBUG
- printf("tftp: read error\n");
+ printf("tftp: read error res(%d)\n", res);
#endif
return (res);
}
@@ -617,11 +617,6 @@
ssize_t cc;
time_t t, t1, tleft;
-#ifdef TFTP_DEBUG
- if (debug)
- printf("sendrecv: called\n");
-#endif
-
tleft = MINTMO;
t = t1 = getsecs();
for (;;) {
@@ -644,6 +639,12 @@
recvnext:
/* Try to get a packet and process it. */
cc = (*rproc)(h, pkt, payload, tleft, rtype);
+ if (errno == EAGAIN) {
+#ifdef TFTP_DEBUG
+ printf("%s: EAGAIN, retrying\n", __func__);
+#endif
+ goto recvnext;
+ }
/* Return on data, EOF or real error. */
if (cc != -1 || errno != 0)
return (cc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 6, 6:53 AM (4 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42250638
Default Alt Text
D14332.1796539996.diff (902 B)
Attached To
Mode
D14332: libsa: Allow a tftp retry if a sendrecv returns ETIMEDOUT
Attached
Detach File
Event Timeline