lattr() Limit

5 views
Skip to first unread message

Four Geeks Gaming

unread,
Nov 10, 2018, 3:39:32 PM11/10/18
to tin...@googlegroups.com
Is there a config parameter that can lift the limit on lattr()? I'm working with a system that has the potential to have to search through hundreds of attributes but lattr cuts off around 375. Just wondering if there's a way to bump that a bit. Thanks.

Stephen Dennis

unread,
Nov 10, 2018, 4:01:53 PM11/10/18
to tin...@googlegroups.com
There isn't a configuration parameter, but it is limited by the size of an LBUF which is controlled by the following in alloc.h:

#define LBUF_SIZE   8000    // Large

For example, FiranMUX increased that to 24000. 
 
This is, strictly speaking, a hardcode change, and it affects the format of the database, so there is a bit of a dance if you are already running the server. You need to unload the database -before- making the change, take a backup, make the change, re-compile cleanly, then delete the existing database and reload cleanly. Also, you need to remember to continue making this hardcode change every time you build the server on a new box. When in doubt, backup early and often.

On Sat, Nov 10, 2018 at 1:39 PM Four Geeks Gaming <zombie...@gmail.com> wrote:
Is there a config parameter that can lift the limit on lattr()? I'm working with a system that has the potential to have to search through hundreds of attributes but lattr cuts off around 375. Just wondering if there's a way to bump that a bit. Thanks.

--

---
You received this message because you are subscribed to the Google Groups "tinymux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinymux+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Four Geeks Gaming

unread,
Nov 10, 2018, 5:58:34 PM11/10/18
to tin...@googlegroups.com
Thanks, that got it. :)

Emily Backes

unread,
Nov 13, 2018, 3:16:18 PM11/13/18
to tin...@googlegroups.com
If you raise it about 32K, you'll need to adjust the BMH code or long string searches will hang.  cf. https://github.com/lashtear/tinymux/commit/2af2f13b98bbd6f51f2bca258b8aa6810ed01bd1

Reply all
Reply to author
Forward
0 new messages