commit | 3cfea40058a9e482febacf368d4ae69d0e2ea21a | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Tue Sep 15 16:27:09 2015 -0700 |
committer | Yabin Cui <yabinc@google.com> | Wed Sep 16 15:00:59 2015 -0700 |
tree | cd1845dd60311ff07e9eadad5a9833f7a9a0a0c8 | |
parent | 410ff1ad5b0a637b5593a923203fb2f0b94252e7 [diff] |
Add unit tests for local socket. Add has_write_error flag in asocket, so it will not wait on local_socket_closing_list to write pending packets in local_socket_close(). Although it doesn't fix any problem, it helps to make the code more stable. Add a missing put_apacket() in error handling. Add a check when adding local socket in local_socket_closing_list. Bug: 23314034 Change-Id: I75b07ba8ee59b7f277fba2fb919db63065b291be