-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- Version: all
- Platform: ibmi
They are the last two failed test cases on IBMi PASE.
Debugging shows below code related to the errors --
https://github.com/libuv/libuv/blob/v1.x/test/test-poll.c#L221-L237
https://github.com/libuv/libuv/blob/v1.x/test/test-poll.c#L296-L316
I added some traces in the action 0&1 code and found the Connection reset by peer error happened in recv() every time when the received bytes exceeds 256.
not ok 1 - poll_duplex
# exit code 393350
# Output from process `poll_duplex`:
# write bytes(0)
# write bytes(103)
# read bytes(0)
# write bytes(0)
# read bytes(0)
# write bytes(206)
# read bytes(74)
# write bytes(103)
# read bytes(74)
# write shutdown (0)
# read bytes(148)
# write bytes(206)
# read bytes(222)
# write shutdown (0)
# read bytes(148)
# read bytes(222)
# read bytes(256)
# read error: Connection reset by peer
# Assertion failed in ../test/test-poll.c on line 228: r >= 0
I tried to write a simplified C program to recreate the issue but failed. Currently I have to skip action 0&1 on IBMi PASE.
Could someone give me some clue how to find the root cause?
Reactions are currently unavailable