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

add_pool() timeout #174

Open
jinq0123 opened this issue Aug 25, 2015 · 0 comments
Open

add_pool() timeout #174

jinq0123 opened this issue Aug 25, 2015 · 0 comments

Comments

@jinq0123
Copy link

Change a_hello sample to connect to LAN Mysql server:

    emysql:add_pool(hello_pool, [{size,1},
        {host, "192.168.1.2"},
        ...
D:\...\deps\emysql\samples>erl -pa ../ebin -s a_hello run -s init stop -noshell
add_pool...{"init terminating in do_boot",{{nocatch,{failed_to_recv_packet_header,timeout}},[{init,start_it,1,[{file,"init.erl"},{line,1062}]},{init,start_em,1,[{file,"init.erl"},{line,1034}]}]}}

Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()

Changing default_timeout to 10s will be OK.

D:\...\deps\emysql\samples>erl -pa ../ebin -s a_hello run -s init
 stop -noshell -emysql default_timeout 10000
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

1 participant