summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-04-05 12:33:08 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-05 16:05:53 +0300
commit385694bb737157ca1b0b9dd153dde516b2ce0b7a (patch)
tree0c7557b85a745fe2e7d47530ab35d679ef930a4a /tools
parentd7d0fce192a2cae1b8e3d4354cc8fe40a0c4451f (diff)
downloadconnman-385694bb737157ca1b0b9dd153dde516b2ce0b7a.tar.gz
connman-385694bb737157ca1b0b9dd153dde516b2ce0b7a.tar.bz2
connman-385694bb737157ca1b0b9dd153dde516b2ce0b7a.zip
dnsproxy: Handle partial TCP messages from client
We were not handling client sent partial TCP messages correctly. This meant that ConnMan would block if the client using TCP would not send full DNS request. When a new TCP client connects in tcp_listener_event(), a new TCP channel is created to handle a partial client message if all of the message is not already available. The partial TCP message is patched together in tcp_client_event(). When all of the TCP message has been received, the message is processed in read_tcp_data(). The client has to send the DNS request within two seconds before the connection is closed by ConnMan.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions