Altera_Forum
Honored Contributor
13 years agohow to handle correctly timeouts using ethernet
Dear All,
I have a design using CycIII full board from altera. This is running ethernet task which is direct copy of the simple server example. On the other side I run python stuff to communicate with the device using packets: i send sort of packet, receve back and so on. the problem I have is, that sometimes my python stuff gets stucked and freezes the connection. typically if it raises some error, and I do not call close(fd) to close the socket, and next time it creates again a new socket and tries to bind it. As the simple socket server has only one incoming connection enabled, such behaviour of python script basically denies other connections as inside the nios the descriptor is still allocated and it does not allow to create another connection/ What is a typical solution to this problem? thanks .d.