The “tftpsrv.c” is used in my application. When I write the file to my application by tftp for many times, there is an error “TFTP Server Failure”. The error happens when writing the file in the 6th times. I set the break pointer to find the reason. I find that the source code run to the red part as follow shown. But if I read the file for many times, there is not any error. Can you help me find out the reason?
Remark:
/* create a socket for the new transaction */
trans_ptr->SOCK = socket(PF_INET, SOCK_DGRAM, 0);
if (trans_ptr->SOCK == RTCS_SOCKET_ERROR) {
TFTP_SEND(tftpsrv_ptr->SRV_SOCK, _tftp_error_srv, sockaddr_t);
RTCS_io_close(trans_ptr->TRANS_FILE_PTR);
_mem_free(trans_ptr);
return;
} /* Endif */
Hi Robbin:
MQX 4.2 GA is available online, I suggest you try this on MQX 4.2, it fixed one tftp client issue
Regards
Daniel