Page 1 of 1

Upping the single message spec'd 512 character limitation

Posted: Thu Jun 01, 2006 9:34 pm
by beckdo
I searched the forums for an answer to this question unsuccessfully.

I'm using the venerable UnrealIRCD as a data relay and connect to it with custom clients.

I've dipped into the source to make a few changes for my architecture but have been unsuccessful at removing the 512byte message limitation after making changes several places in the code.

I realize that making this change would likely crash IRC clients and make the server generally unusable but I'm not concerned with typical IRC clients because I'm only connecting with custom clients.

Does anyone know if there is any 'show stoppers' that would make the difficulty beyond making a few changes in the code? (I didn't see any but I've obviously missed something)

Thanks for an awesome irc server! :P

Posted: Thu Jun 01, 2006 10:00 pm
by Syzop
That is really really not going to work and very dangerous indeed. Tons of code relies on 512 bytes max irc messages. So even if you ignore the IRC Client incompatability thing, it's still impossible or at the very least very unsafe and will make your ircd highly hackable.
Incidently we had a small discussion about it a few days ago.

I too, wished we could up it somehow to, say, 1K, but no luck... It would involve increasing tons of buffers and variables :|

So the only workaround is to wrap messages in multiple lines, or other client-side techniques.

Or, write your own (non-IRC) server of course :P. To my knowledge a lot of irc servers rely on 512 bytes, basically because it's cut in stone in the RFC and semi-unchangable.

I'm also afraid I'll have to close this topic, since we do not support modifications (nor allow discussions about it).

Posted: Thu Jun 01, 2006 10:10 pm
by Syzop
answer clarified a bit (editted).