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

I/O polling #3240

Open
wants to merge 83 commits into
base: main
Choose a base branch
from
Open

I/O polling #3240

wants to merge 83 commits into from

Conversation

armanbilge
Copy link
Member

Upgrades to Cats Effect 3.6-e9aeb8c which includes the new I/O polling system.

The following APIs can be implemented with I/O polling. I've done some in this PR, the rest might end up in follow-up PRs.

JVM Selector-based I/O

  • SocketGroup and Socket
  • DatagramSocketGroup and DatagramSocket
  • UnixSockets

Native file descriptor polling-based I/O

  • SocketGroup and Socket
  • DatagramSocketGroup and DatagramSocket
  • UnixSockets
  • Processes and Process
  • fs2.io.{stdin,stdout,stderr}

@yilinwei
Copy link
Contributor

yilinwei commented Aug 4, 2023

Just writing this down here before I forget,

I saw this error (which looks eerily like we're using an at before checking), I'm not certain why it's Unknown Source unfortunately.

java.lang.ArrayIndexOutOfBoundsException: 0
	at java.lang.StackTrace$.currentStackTrace$$anonfun$1(Unknown Source)
	at java.lang.StackTrace$$$Lambda$2.applyVoid(Unknown Source)
	at apply @ fs2.io.net.FdPollingSocket.go$1$$anonfun$2(Unknown Source)
	at apply @ fs2.io.net.FdPollingSocket.go$1(Unknown Source)
	at flatMap @ fs2.io.net.FdPollingSocket.go$1(Unknown Source)
	at pollReadRec @ fs2.io.net.FdPollingSocket.read$$anonfun$1(Unknown Source)
	at pollReadRec @ fs2.io.net.FdPollingSocket.read$$anonfun$1(Unknown Source)```

@armanbilge
Copy link
Member Author

I'm not certain why it's Unknown Source unfortunately.

All Scala Native stack traces are like this currently. They don't include any source/line information, but they will soon.

@armanbilge
Copy link
Member Author

I saw this error (which looks eerily like we're using an at before checking)

Fixed in 500e545.

@armanbilge
Copy link
Member Author

Published 3.10-4b5f50b to Maven central.

@armanbilge
Copy link
Member Author

Published 3.10-365636d to Maven central.

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.

2 participants