xjdrew / levent

lua concurrency library based on libev, similar with gevent
MIT License
191 stars 61 forks source link

lua examples/dns_mass_resolve.lua would get error message #10

Closed pbby closed 9 years ago

pbby commented 9 years ago

I can run lua tests/test_socket.lua success, but failed of run lua examples/dns_mass_resolve.lua

error message below:

error:  prepare: 0x12d1d38      ./levent/levent.lua:26: ./levent/dns.lua:104: attempt to call upvalue 'pack' (a nil value)
stack traceback:
        [C]: in function 'assert'
        ./levent/levent.lua:26: in function 'func'
        ./levent/loop.lua:8: in function <./levent/loop.lua:7>
        [C]: in function 'xpcall'
        ./levent/loop.lua:156: in function '_run_callback'
        ./levent/loop.lua:88: in function <./levent/loop.lua:87>
        [C]: in function 'xpcall'
        ./levent/loop.lua:52: in function 'run_callback'
        ./levent/loop.lua:146: in function <./levent/loop.lua:144>
        [C]: in function 'run'
        ./levent/loop.lua:95: in function 'run'
        ./levent/hub.lua:75: in function 'run'
        ./levent/levent.lua:60: in function 'start'
        examples/dns_mass_resolve.lua:40: in main chunk
        [C]: in ?
xjdrew commented 9 years ago

string.pack is a function of lua5.3