And things worked just fine when I tried on WSL :) .. so it must be the
ipv6 issue on docker.
Regards,
Kashyap

On Thu, Mar 14, 2019 at 5:55 AM C K Kashyap <[email protected]> wrote:

> The dbapp is essentially from here - https://picolisp.com/wiki/?mindbgui
> and it seems to run fine.
>
> I tried strace on httpGate and got this - looks like httpGate needs IPv6
> and docker supports IPv6 only for Linux hosts
> <https://docs.docker.com/config/daemon/ipv6/> and I am running my stuff
> on a mac!
>
> <... accept resumed> {sa_family=AF_INET6, sin6_port=htons(52162),
> inet_pton(AF_INET6, "::ffff:172.17.0.1", &sin6_addr),
> sin6_flowinfo=htonl(0), sin6_scope_id=0}, [28]) = 4
>
> clone(strace: Process 817 attached
>
>  <unfinished ...>
>
> [pid   817] set_robust_list(0x7f40734b54a0, 24 <unfinished ...>
>
> [pid   776] <... clone resumed> child_stack=NULL,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0x7f40734b5490) = 817
>
> [pid   817] <... set_robust_list resumed> ) = 0
>
> [pid   776] close(4 <unfinished ...>
>
> [pid   817] close(3 <unfinished ...>
>
> [pid   776] <... close resumed> )       = 0
>
> [pid   817] <... close resumed> )       = 0
>
> [pid   776] accept(3,  <unfinished ...>
>
> [pid   817] alarm(420)                  = 0
>
> [pid   817] read(4, "GET / HTTP/1.1\r\nHost: localhost:"..., 4096) = 419
>
> [pid   817] alarm(0)                    = 420
>
> [pid   817] socket(AF_INET6, SOCK_STREAM, IPPROTO_IP) = 3
>
> [pid   817] connect(3, {sa_family=AF_INET6, sin6_port=htons(8080),
> inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=htonl(0),
> sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address)
>
> [pid   817] exit_group(1)               = ?
>
> [pid   817] +++ exited with 1 +++
>
> <... accept resumed> {sa_family=AF_INET6, sin6_port=htons(52164),
> inet_pton(AF_INET6, "::ffff:172.17.0.1", &sin6_addr),
> sin6_flowinfo=htonl(0), sin6_scope_id=0}, [28]) = 4
>
> clone(strace: Process 818 attached
>
>  <unfinished ...>
>
> [pid   818] set_robust_list(0x7f40734b54a0, 24 <unfinished ...>
>
> [pid   776] <... clone resumed> child_stack=NULL,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0x7f40734b5490) = 818
>
> [pid   818] <... set_robust_list resumed> ) = 0
>
> [pid   776] close(4 <unfinished ...>
>
> [pid   818] close(3 <unfinished ...>
>
> [pid   776] <... close resumed> )       = 0
>
> [pid   818] <... close resumed> )       = 0
>
> [pid   776] accept(3,  <unfinished ...>
>
> [pid   818] alarm(420)                  = 0
>
> [pid   818] read(4, "", 4096)           = 0
>
> [pid   818] alarm(0)                    = 401
>
> [pid   818] exit_group(1)               = ?
>
> [pid   818] +++ exited with 1 +++
>
>
>
>
>
>
>
>
> On Wed, Mar 13, 2019 at 11:45 PM Alexander Burger <[email protected]>
> wrote:
>
>> Hi Kashyap,
>>
>> > I cant seem to get httpGate to run correctly. I tried running it as
>> follows
>> > First run the app on port 8080 -
>> > /pil dbapp.l -main -go -wait &
>> > ...
>> > /bin/httpGate 3000 8080
>> > ...
>> > root@6b36fb429264:~/picoLisp# telnet localhost 3000
>> > ...
>> > GET / HTTP/1.1
>>
>> This seems correct. It must be in dbapp.l I suspect.
>>
>> Does dbapp.l work without httpGate? Best start in debug mode first
>> (instead of
>> in the background) to get a prompt
>>
>>    <pathTo>/pil dbapp.l -main -go +
>>
>> then try
>>
>>    w3m http://localhost:8080
>>
>> ☺/ A!ex
>>
>> --
>> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>>
>

Reply via email to