Skip to content

fix port.Read will returns PortClosed error on linux if the buffer size is zero#189

Open
zyxkad wants to merge 1 commit intobugst:masterfrom
zyxkad:patch-1
Open

fix port.Read will returns PortClosed error on linux if the buffer size is zero#189
zyxkad wants to merge 1 commit intobugst:masterfrom
zyxkad:patch-1

Conversation

@zyxkad
Copy link

@zyxkad zyxkad commented Jun 30, 2024

I was confused of the return error when I did buf := make([]byte, 0, 1024) :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant