On Mon, Jun 3, 2024 at 12:42 PM armin afsharian <armin8...@gmail.com> wrote:
>
> For my research project, I'm trying to change the Go runtime to use 
> "Epolloneshot" instead of the default "Edge-Triggered" mode. Based on what 
> I've gathered from the code, I've changed two functions in 
> src/runtime/netpoll_epoll.go.
>
> First, I updated the netpollopen function to use the Epolloneshot flag 
> instead of the Epollet flag. Second, I modified the netpollarm function, 
> which isn't used in Linux, to rearm notifications for Epolloneshot. I also 
> tweaked poll_runtime_pollWait() in src/runtime/netpoll.go to call netpollarm 
> for Linux.
>
> Now, I'm running into an issue where HTTP tests for compiling Go are failing. 
> Here's the error I'm seeing:
>
> "httptest.Server blocked in Close after 5 seconds, waiting for connections:
>
> *net.TCPConn 0xc000221520 127.0.0.1:51836 in state active
>
> panic: test timed out after 9m0s"
>
> I suspect that the rearming might be incorrect, causing the server to stall 
> indefinitely.
>
> Just so you know, I'm using Ubuntu 22.04 and Go 1.18.10.

I don't know what the problem is.

That said, look at how netpoll_solaris.go calls netpollupdate from netpoll.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcU%3DRzk1_9L4WYYJHC0hFFqCeJLv9HPcRdULZHHKsQujnw%40mail.gmail.com.

Reply via email to