pingora icon indicating copy to clipboard operation
pingora copied to clipboard

Pingora-core L4 listen fail(windows)

Open vicanso opened this issue 1 year ago • 4 comments

Describe the bug

Pingora-core L4 listen fail: cannot find value listen_addr in this scope.

 #[cfg(windows)]
    pub async fn listen(self) -> Result<ListenerEndpoint> {
        Ok(ListenerEndpoint {
            listen_addr,
            listener: bind(&listen_addr).await?,
        })
    }

https://github.com/cloudflare/pingora/blob/main/pingora-core/src/listeners/l4.rs#L308

Pingora info

Please include the following information about your environment:

Pingora version: bdb13a7e40b19280d703ad1f64abc29ee5baf480 Rust version: cargo 1.82.0 Operating system version: e.g. Ubuntu 22.04, Debian 12.4

Steps to reproduce

Please provide step-by-step instructions to reproduce the issue. Include any relevant code snippets.

Expected results

What were you expecting to happen?

Observed results

What actually happened?

Additional context

What other information would you like to provide? e.g. screenshots, how you're working around the issue, or other clues you think could be helpful to identify the root cause.

vicanso avatar Nov 12 '24 14:11 vicanso

I didn't understand how to solve it.

MrGlp avatar Feb 18 '25 06:02 MrGlp

I need help

MrGlp avatar Feb 19 '25 05:02 MrGlp

@MrGlp I think you want to change the name of the variable in that function to self. We don't have great coverage of Windows because most of us don't use it for our main driver.

gumpt avatar Feb 21 '25 17:02 gumpt

I'll start working on this issue

dohrisalim avatar Aug 19 '25 15:08 dohrisalim