ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Check also http://www.picolisp.com for more information
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #picolisp
orivej has quit [Ping timeout: 258 seconds]
<Regenaxer> Strange, on one machine (connect "localhost" 4040) gives NIL, despite that another process listens there
<Regenaxer> and with pil21 I can connect
<Regenaxer> oops
<Regenaxer> on pil21 it gives NIL
<Regenaxer> and with pil64 I can connect
<Regenaxer> "lsof -i :4040" shows the listening process
<Regenaxer> only on one Debian machine. On another Debian (same version) and on Termux it works
<Regenaxer> What might be the difference?
<Regenaxer> i.e. pil21 'connect' to "localhost" fails on certain conditions
<Regenaxer> Correction: Not only localhost. (connect "google.com" 80) fails on that machine too
orivej has joined #picolisp
<Regenaxer> Tested on still another Debian. Works. So on *one* machine it fails
orivej has quit [Ping timeout: 256 seconds]
<Regenaxer> strace gives:
<Regenaxer> connect(3, NULL, 28) = -1 EFAULT (Bad address)
<Regenaxer> connect(3, NULL, 16) = -1 EFAULT (Bad address)
<Regenaxer> What is port 28 or 16?
<tankf33der> i have connect in my test bed, always everywhere were ok
<Regenaxer> ok
<tankf33der> check strace where connect works
<Regenaxer> different. There is no connect to 28 or 16
<Regenaxer> it has:
<Regenaxer> connect(3, {sa_family=AF_INET6, sin6_port=htons(80), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "2a00:1450:4001:816::200e", &sin6_addr), sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)
<Regenaxer> connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("216.58.210.14")}, 16) = 0
<Regenaxer> so 16 and 28 are there
<Regenaxer> but the first has NULL
<Regenaxer> sin_addr
<Regenaxer> It must be a bug in pil21 showing only on that machine. It is the machine in my office here
<Regenaxer> but pil64 can connect
<Regenaxer> I must check the difference between the net.l virsions
orivej has joined #picolisp
<Regenaxer> (udp) also does not work
<Regenaxer> Could be 'server' in lib/net.l then
<Regenaxer> Ha, (host "google.com") also returns NIL
<Regenaxer> Some DNS issue?
<Regenaxer> Something with "getaddrinfo"
<Regenaxer> (%@ "getnameinfo" ..) returns -6
<Regenaxer> Getting close, have an idea what the problem is
<Regenaxer> It is probaly the traversal of nameinfo structubes
<Regenaxer> If the first one fails
<Regenaxer> hmm, no
<Regenaxer> Ha! Fixed it
<Regenaxer> ai_addrlen is 4 bytes
<Regenaxer> Need to use 'I instead of 'N
<Regenaxer> So it was a bit random whether it worked or not
<Regenaxer> Worked by chance if the upper 4 bytes were zero
<Regenaxer> BTW, I started to run the Wiki at picolisp.com on pil21! First real-world use. Let's pray it does not corrupt the DB!
<Regenaxer> I still wait with the commercial applications
<beneroth> I guess you do snapshots? :)
<beneroth> then it should be fine, recoverable :)
<beneroth> (in the wiki, I mean)
<Regenaxer> yes, mirrored with 'ssl' and then backups (incremental)
<Regenaxer> but I made also a TGZ of the DB before starting
<Regenaxer> also (dbCheck) etc
<Regenaxer> Now watching the log protocol in one terminal
wineroots has quit [*.net *.split]
joebo has quit [*.net *.split]
joebo has joined #picolisp
ym has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #picolisp
ym has quit [Remote host closed the connection]
alexshendi has joined #picolisp
<alexshendi> Good Evening!
<Regenaxer> Good evening alexshendi!
alexshendi has quit [Quit: Leaving]