Skip to content

erlysocks does not work with curl #1

@afiskon

Description

@afiskon

Возможно, я делал что-то не так, но, кажется, сервер не работает, если попытаться скачать что-нибудь через него curl'ом.

Например, если сказать:

curl --socks5 localhost:1080 http://mail.ru -N -o -

в логах появляется:

18:23:12.745 [error] gen_server <0.68.0> terminated with reason: no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261
18:23:12.746 [error] CRASH REPORT Process <0.68.0> with 0 neighbours exited with reason: no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261 in gen_server:terminate/6 line 747
18:23:12.747 [error] Supervisor erlysocks_cli_sup had child erlysocks_cli started with {erlysocks_cli,start_link,undefined} at <0.68.0> exit with reason no function clause matching gen_tcp:send(undefined, <<5,2,0,1>>) line 261 in context child_terminated
^Cmake: *** [run] Interrupt

Тестировал под Ubuntu 12.10 на Erlang R16B.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions