commit | 2ce9d5611924f64fa7dadace825d2805373aba64 | [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 | 78c34b929c2959c5471dc504423ca244d1b764c5 | |
parent | 4d4961f418cec8639a90ed23ada89f84eff5c6ec [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