Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle sendto() function failure conditions
The sendto() function can fail because of multiple conditions. Currently we are handling few conditions. If there is an error due to another condition, the process gets stuck in repeatedly trying to call sendto() function and failing with the same error condition. For example, when awa session is established and after that network interface goes down(ex. ethernet cable is removed), the sendto() fuction fails with error 'ENETUNREACH'. This error is not handled and the process gets stuck in repeatedly calling sendto() fuction. There are also other possible error conditions. In this change handling all error conditions, so that process does not get stuck in endless loop. Ref: AWA-311 Signed-off-by: Pranit Tanaji Sirsat <[email protected]>
- Loading branch information