faboussard / 42-irc

3 stars 1 forks source link

Actual Crashes #32

Open melobern opened 2 weeks ago

melobern commented 2 weeks ago

:information_source: This issue must be closed at the very end of the project. Until then, we add every command that made the server crash. We check them when we solve them and will happily retest them later :tada:

faboussard commented 1 week ago

crash apres un essai de connexion infructueux :

➜  irc git:(kick) ✗ nc -C localhost 6667
pass pass 
nick ni
user ni 0 *:realname
:ircserv.localhost 461 ni USER :Not enough parameters
join #s
:ircserv.localhost 451 ni :You have not registered
pass pass
:ircserv.localhost 462 ni :You may not reregister
nick ni
join #s
:ircserv.localhost 451 ni :You have not registered
join
:ircserv.localhost 451 ni :You have not registered
pass 
:ircserv.localhost 462 ni :You may not reregister
pass pass
nc: write failed (0/2): Broken pipe
faboussard commented 1 week ago

netcat: crash apres un quit suivi dun join 0 (car on fait un part alors que plus rien nexiste...). a tester sur hexchat

:nick PART #s : say goodbye!
quit
join 0
nc: write failed (0/2): Broken pipe

EDIT : NOT AN ISSUE - NETCAT CANNOT CONTACT SERVER AFTER QUIT

ysengoku commented 1 week ago

netcat: crash apres un quit suivi dun join 0 (car on fait un part alors que plus rien nexiste...).

a tester sur hexchat


:nick PART #s : say goodbye!

quit

join 0

nc: write failed (0/2): Broken pipe

Pour moi, ce n'est pas un Crash mais un comportement normal. Au moment où un client a fait QUIT, il n'est plus connecté au server, donc fd est fermé (= write failed). Le message vient du nc. Et je ne pense pas que le server puisse fermer le nc. C'est sur le terminal où le nc est lancé que l'on pourra arrêter le programme nc.