Giter Club home page Giter Club logo

Comments (7)

larseggert avatar larseggert commented on July 30, 2024

server (historically) assumes it executes from within Debug, i.e., as bin/server - the default path where it looks for its certificate and key is test.

This is why you get the could not open key test/dummy.key [errno 2 = No such file or directory] error.

If you execute it from another directory, you need to explictly tell it where to find its cert and key using the -c and -k options.

from quant.

larseggert avatar larseggert commented on July 30, 2024

@piano-man did that fix it?

from quant.

piano-man avatar piano-man commented on July 30, 2024

This is the error I get when I specify the key and cert using the -c and -k options -
(Could this be because I'm trying to run this on WSL ?)

0.061 q_init quic.c:662 quant/socket (epoll/sendmmsg/recvmmsg) 0.0.27/87911c7 ready
0.062 q_init quic.c:663 submit bug reports at https://github.com/NTAP/quant/issues
0.067 :0 ABORT: DIED [errno 1 = Operation not permitted]
/usr/lib/x86_64-linux-gnu/libasan.so.4(+0x558c0) [0x7f5ac5a958c0]
util_die at /home/gagan/Projects/quant/lib/deps/warpcore/lib/src/util.c:398
w_set_sockopt at /home/gagan/Projects/quant/lib/deps/warpcore/lib/src/backend_sock.c:113
backend_bind at /home/gagan/Projects/quant/lib/deps/warpcore/lib/src/backend_sock.c:297
w_bind at /home/gagan/Projects/quant/lib/deps/warpcore/lib/src/warpcore.c:296
new_conn at /home/gagan/Projects/quant/lib/src/conn.c:1848
q_bind at /home/gagan/Projects/quant/lib/src/quic.c:447
main at /home/gagan/Projects/quant/bin/server.c:327
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f5ac3e21b97]
_start at ??:?
Aborted (core dumped)

from quant.

larseggert avatar larseggert commented on July 30, 2024

I don't know if the issue is WSL. Are you able to test this on a regular Linux box?

The error you now get is because the kernel doesn't permit a setsockopt call, which it should permit, so this may be a WSL issue after all.

You could also try running with sudo to see if that makes a difference.

from quant.

larseggert avatar larseggert commented on July 30, 2024

This is an issue in WSL: MicrosoftDocs/WSL#362

I'll see if I can work around it.

from quant.

larseggert avatar larseggert commented on July 30, 2024

OK, I fixed this in NTAP/warpcore@b666948; please update and try again?

from quant.

piano-man avatar piano-man commented on July 30, 2024

Perfect. Seems to be working now 👍

from quant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.