summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorForest Bond <forest.bond@rapidrollout.com>2012-11-15 10:23:50 -0500
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-16 14:59:05 +0200
commita3c241e74ce36b53e8105c76971eec9acc5cba74 (patch)
tree871090ee4b3e28b6e1a414eaa27cbb3b502bfa66 /src/device.c
parentb265aa0b0c187cc660f3b3e1714d383132821c38 (diff)
downloadconnman-a3c241e74ce36b53e8105c76971eec9acc5cba74.tar.gz
connman-a3c241e74ce36b53e8105c76971eec9acc5cba74.tar.bz2
connman-a3c241e74ce36b53e8105c76971eec9acc5cba74.zip
dnsproxy: Close the UDP socket on error condition.
The socket is created again on the next request. Previously, an error condition only caused the event watch to be removed and then added again on the next request to avoid processing spurious error events. But in some network environments, the error condition is caused by an overly aggressive firewall that rejects our UDP packets and sends an ICMP error packet indicating an unreachable host and/or port. In some of these cases we can recover by using a different UDP source port for outgoing requests (i.e. by closing and re-opening the socket).
Diffstat (limited to 'src/device.c')
0 files changed, 0 insertions, 0 deletions