Skip to content

"mg.printf()" sends nothing #2

@gvanem

Description

@gvanem

Building this package on Windows using LuaJIT has not been easy.

Trying the src/examples/http-client/http-client.lua, I can see that the ev == MG_EV_CONNECT gets received
(I added a simple Send request trace for it). But no GET / is ever sent to Winsock. This is the output of the example now:

41d58f69 3 net.c:308:mg_mgr_init        MG_IO_SIZE: 16384, TLS: builtin
41d58f69 3 net.c:190:mg_connect_svc     1 -1 http://info.cern.ch/
41d58f69 3 net.c:190:mg_connect_svc     2 -1 udp://8.8.8.8:53
41d58f69 3 sock.c:141:mg_send           2 544 0:0:0 30 err 0
41d58f79 3 sock.c:336:read_conn         2 544 0:0:0 70 err 0
41d58f79 3 dns.c:180:dns_cb             1 webafs902.cern.ch is 188.184.67.127
41d58f79 3 sock.c:430:mg_connect_resolv 1 552 -> 188.184.67.127:80 pend
Send request

An 8 sec pause

41d5a737 3 net.c:159:mg_close_conn      2 544 closed
41d5a737 3 net.c:159:mg_close_conn      1 552 closed
41d5a737 3 net.c:266:mg_mgr_free        All connections closed

No request, hence no response. Why?
(but the DNS request/response works).

Besides, I'm confused as to which Lua version is supported. ver. 5.5 does not build at all.
And the code under includes/libmongoose/src is misssng a lot of functions.
Why can't https://github.com/TheRootED24/libmongoose.git be included there instead?

And finally the CMake-build is not for Windows. Hence I cooked-up this GNU-makefile for MG-Lua.

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