[roll] Roll fuchsia Revert "[netstack][fdio] TCP connection reset handling fixes"

This reverts commit c99fe9c1284265fe5eb0cd3ce7c3ba431b2f3f4a.

Reason for revert: Several e2e tests are failing with "SocketException: OS Error: Connection refused"

Original change's description:
> [netstack][fdio] TCP connection reset handling fixes
>
> Fix fdio and netstack2 layers to propagate reset error state and return
> appropriate errors for socket read/write calls, while keeping the
> behavior in parity with Linux. Address few edge cases for connecting
> vs connected states and blocking vs non-blocking socket calls.
>
> - Define new fdio states to record reset error state for connected
>   and connecting sockets. Apply that for subsequent read/write socket
>   calls to return appropriate errors. This change ensures that the
>   behavior is in parity with Linux.
> - Fix netstack2 to account for connection handshake failures while
>   signalling an incoming event to the client.
> - Define 2 new signals to convey connection reset and refused cases
>   to the fdio layer.
> - Refactor part of gVisor endpoint error handling from within loopXX
>   routines and offload the actions to the EventHUp callback that is
>   currently registered with gVisor stack.
> - Fix EventHUp callback registration to check for prior endpoint
>   error state and if so, intitiate closing of the endpoint.
> - Enable TCP shutdown for a listening socket.
>
> Original-Bug: 35594
> Test: fx test -od netstack-bsdsocket-c-api-test -- --gtest_filter=NetStreamTest/StopListenWhileConnect.*
> Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/437660

TBR=abarth@google.com,tamird@google.com,brunodalbo@google.com,ghanan@google.com,iyerm@google.com

No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Original-Bug: 35594
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/483899
Original-Revision: a8541a44d4a79480b88fc4cae9b38d8fcf9bc1a6
GitOrigin-RevId: 4e91dec4f1a395dedc335f83a240ce6e586bf733
Change-Id: I6739e879028edcbd50de4af956b89566a02ab969
1 file changed
tree: 15e796bda2aecda767d10d087ddb34804a51004a
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. flower
  8. jiri.lock
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.