WHOWAS Replying 406

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Post Reply
fearcry
Posts: 8
Joined: Sat Sep 26, 2020 10:08 am
Location: Germany
Contact:

WHOWAS Replying 406

Post by fearcry »

Hello,
i get always a 406 Error Reply if i request a User with raw "WHOWAS <nick>" Command, on both cases if a User have quit some times before OR this user is online.

The Server (UnrealIRCD 6.03) is set to WHOWAS:1

Do i have to set something else in my Server-Config ?


cheers

fearcry
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: WHOWAS Replying 406

Post by Syzop »

What do you get if you type this on the shell in your unrealircd-x.y.z compile directory?

Code: Select all

grep HISTORY config.settings
fearcry
Posts: 8
Joined: Sat Sep 26, 2020 10:08 am
Location: Germany
Contact:

Re: WHOWAS Replying 406

Post by fearcry »

hello,
i'm on windows server and installed a ready compiled software.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: WHOWAS Replying 406

Post by Syzop »

On Windows UnrealIRCd keeps 2000 entries in total of whowas history. Where 1 entry is used on every QUIT or nick-change. So how long you can read back depends on how many users are actively quiting or nick-changing.
I have not tested it, though.

Do you think it is not reaching this 2000 and is happening much sooner? If so, how soon?
fearcry
Posts: 8
Joined: Sat Sep 26, 2020 10:08 am
Location: Germany
Contact:

Re: WHOWAS Replying 406

Post by fearcry »

Hello,
i set on UnrealIRCD for checking my own Client-Programming. We are just 5 Users and not linked to any other Servers.

So let me say: no we doesn't reach this 2000 Items. I updated to UnrealIRCD6 just one Month ago if i remind correctly,
i have no clue of the amount of quits or nickchanges since the Serverstart, but never 2000.

I understand it following now:

UnrealIRCD store a Database or StringList for a WHOWAS/WHOIS/WHO History and save every Quit and NickChange.
So, if one of our Users quit the Server, there must be an Item for it inside this History-List.

If i make a Request for this User like /whowas <User> the Server should respond the last Item of this Users History?
Then it seems that this History-List is empty or not working, it would explain this 406 Error Reply for me.

cheers

fearcry
fearcry
Posts: 8
Joined: Sat Sep 26, 2020 10:08 am
Location: Germany
Contact:

Re: WHOWAS Replying 406

Post by fearcry »

Hello, i fixed this Error in my own Clientcode, so you can close this Thread here.

SocketRaw:

old:
•04:10:23• <RAW> [O]: WHOWAS 2 fearcry <- wrong placed Parameters raised 406
•04:10:23• <RAW> : 369 fear_check fearcry :End of WHOWAS

new:
•04:18:23• <RAW> [O]: WHOWAS fearcry 2
•04:18:23• <RAW> : 314 fear_check fearcry BSIRC2954 netadmin.baumannsoftware.com * :BSIRC Version: 2.2.7.000
•04:18:23• <RAW> : 312 fear_check fearcry irc.baumannsoftware.com :Tue Aug 9 00:05:29 2022 <- timestring seems wrong placed in Reply
•04:18:23• <RAW> : 314 fear_check fearcry BSIRC2952 baumannsoftware.com * :BSIRC 2.2.7.000
•04:18:23• <RAW> : 312 fear_check fearcry irc.baumannsoftware.com :Mon Aug 8 21:48:19 2022 <-
•04:18:23• <RAW> : 369 fear_check fearcry :End of WHOWAS

cheers fearcry
Post Reply