Skip to content

add_pool() timeout  #174

@jinq0123

Description

@jinq0123

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

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