Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send-after-close in server #9

Open
tbarbette opened this issue Mar 15, 2022 · 2 comments
Open

Send-after-close in server #9

tbarbette opened this issue Mar 15, 2022 · 2 comments

Comments

@tbarbette
Copy link
Collaborator

Starting program: /home/tbarbette/workspace/rapido/rapido -c ./t/assets/rsa/cert.pem -k ./t/assets/rsa/key.pem localhost 8443
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[launching the client, that runs fine and display the transfer statistics]
Accepted connection

Program received signal SIGPIPE, Broken pipe.
0x00007ffff7cc8730 in __libc_send (fd=4, buf=0x7ffff642244f, len=262496,
    flags=flags@entry=0) at ../sysdeps/unix/sysv/linux/send.c:28
28      ../sysdeps/unix/sysv/linux/send.c: No such file or directory.
(gdb) where
#0  0x00007ffff7cc8730 in __libc_send (fd=4, buf=0x7ffff642244f, len=262496,
    flags=flags@entry=0) at ../sysdeps/unix/sysv/linux/send.c:28
#1  0x0000555555565fd5 in rapido_send_on_connection (session=0x5555556a5790,
    connection_id=<optimized out>, current_time=<optimized out>)
    at /home/tbarbette/workspace/rapido/lib/rapido.c:1786
#2  0x0000555555566dfa in rapido_run_network (session=<optimized out>,
    timeout=<optimized out>) at /home/tbarbette/workspace/rapido/lib/rapido.c:1912
#3  0x000055555555cfaa in run_server (session=0x5555556a5790)
    at /home/tbarbette/workspace/rapido/t/rapido.c:73
#4  0x000055555555c9b5 in main (argc=0, argv=<optimized out>)
    at /home/tbarbette/workspace/rapido/t/rapido.c:233
(gdb)

Is it expected at this stage? Or should I look more into it? I need the server to at least not crash after a single connection to advance on wrk :)

@mpiraux
Copy link
Owner

mpiraux commented Mar 15, 2022

There is no test using the rapido CLI actually. So it very well might be broken. I'll look into it

mpiraux added a commit that referenced this issue Mar 15, 2022
@mpiraux
Copy link
Owner

mpiraux commented Mar 15, 2022

I've added a test running the CLI. It passes so the issue might be on your side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants