Merge change 2329

* changes:
  Fix bug where ECONNABORTED would have always occured on asocket_write.