Martin Sustrik

Results 159 comments of Martin Sustrik

That's 10000 stacks. You may try to preallocate stacks of specific size using goprepare.

Can you give a concrete example?

It looks like the error is coming from here: https://github.com/sustrik/libmill/blob/master/udp.c#L104 22 means EINVAL The man page description doesn't seem to apply: https://www.unix.com/man-page/osx/2/sendto/ Try checking whether udplisten succeeds.

Can you trace the execution to udp.c:104 then check the argument values to sendto() function as well as the result value and errno?

sa_family is AF_INET because you pass in IPv4 address (8.8.8.8) Possibly, the problem is that socket, although using "bind to all interfaces" option only binds to IPv6 interfaces and as...

What happens if you try to send the packet to an acutal IPv6 address?

chan is just a pointer. You can pass it through a channel.

Integrating this with libmill would make sense IMO. However, those having no need for ssl/tls should be able to build libmill without even having openssl installed. Maybe a configure option:...

John, I've moved your code into libmill itself. I have changed the API so that it's consistent with the rest of libmill API, but otherwise I've left it unchanged. To...

Have a look at the tip of the repo. ssl.c is the existing state of affairs. It's a bit raw but at least the tests (tests/ssl.c) pass. Maybe you can...