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

Request stuck at ReadAll #6

Closed
firstrow opened this issue Jun 16, 2016 · 4 comments
Closed

Request stuck at ReadAll #6

firstrow opened this issue Jun 16, 2016 · 4 comments

Comments

@firstrow
Copy link

For some reason code got freeze on method

func readAll(conn net.Conn) (resp []byte, err error)

I tested my proxy, and also bunch of others - same result.
Here is my code:

package main

import (
    "h12.me/socks"
    "log"
)

func main() {
    server := "x.x.x.x:9999"
    proxyServer := "x.x.x.x:8888" // TinyProxy, Socks5

    f := socks.DialSocksProxy(socks.SOCKS5, proxyServer)

    conn, err := f("tcp", server)

    if err != nil {
        log.Println("err", err)
    }
    conn.Write([]byte("Hello")) # This line is never reached
    defer conn.Close()
}

Any ideas? Thanks.

@firstrow
Copy link
Author

Also tested socks4 - it just works fine.

@h12w
Copy link
Owner

h12w commented Jun 17, 2016

I have tested the code of SOCK5 again using the example in README.md, and it just works as I have expected. Just make sure you have a SOCK5 proxy with anonymous authentication.

@firstrow
Copy link
Author

Thanks for the answer. socks uses "Allow x.x.x.x". and have no idea why at your machine it worked.

@firstrow
Copy link
Author

Ok, looks like this is my and a bunch of others tinyproxy issue. connectiong to TOR network worked well.

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

No branches or pull requests

2 participants