Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VZFileHandleNetworkDeviceAttachment throw NSInvalidArgumentException #96

Closed
Code-Hex opened this issue Oct 31, 2022 · 0 comments · Fixed by #97
Closed

VZFileHandleNetworkDeviceAttachment throw NSInvalidArgumentException #96

Code-Hex opened this issue Oct 31, 2022 · 0 comments · Fixed by #97
Labels
bug Something isn't working

Comments

@Code-Hex
Copy link
Owner

Describe the bug

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[VZFileHandleNetworkDeviceAttachment initWithFileHandle:]: Failed to get file descriptor properties: Socket operation on non-socket
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[VZFileHandleNetworkDeviceAttachment initWithFileHandle:]: The fileHandle must be a datagram socket

To Reproduce
Steps to reproduce the behavior:

vz.NewFileHandleNetworkDeviceAttachment(f) // f has a file descriptor which is not datagram (UDP)

Expected behavior

No throw exception

Screenshots
If applicable, add screenshots to help explain your problem.

Environment that you use to compile (please complete the following information):

  • Xcode version: [xcodebuild -version | pbcopy]
Xcode 14.1
Build version 14B47b
  • macOS Version: [sw_vers | pbcopy]
ProductName:		macOS
ProductVersion:		13.0
BuildVersion:		22A380
  • mac architecture: [uname -m | pbcopy]
arm64
  • Go Version: [go version | pbcopy]
go version go1.19 darwin/arm64

Additional context
Add any other context about the problem here.

@Code-Hex Code-Hex added the bug Something isn't working label Oct 31, 2022
Code-Hex added a commit that referenced this issue Oct 31, 2022
Code-Hex added a commit that referenced this issue Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant