GEARMAN_FUNCTION_MAX_SIZE is defined in libgearman/limits.h as 512, not 64
If you follow the code in gearmand:
(client.cc) gearman_client_addtask[level]_background ->
(client.cc) add_task_ptr ->
(add.cc)
gearman_sting_t function = { gearman_string_param_cstr(function_name) }; [ which saves the string and the len into function, definition for gearman_string_param_cstr in libgearman/string.h ]
add_task ->
(add.cc)
if gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE
I subtracted 1 much like the 1 subtracted from GEARMAN_MAX_UNIQUE_SIZE
GEARMAN_FUNCTION_MAX_SIZE is defined in libgearman/limits.h as 512, not 64
If you follow the code in gearmand:
(client.cc) gearman_client_addtask[level]_background -> (client.cc) add_task_ptr -> (add.cc) gearman_sting_t function = { gearman_string_param_cstr(function_name) }; [ which saves the string and the len into function, definition for gearman_string_param_cstr in libgearman/string.h ] add_task -> (add.cc) if gearman_size(function) > GEARMAN_FUNCTION_MAX_SIZE
I subtracted 1 much like the 1 subtracted from GEARMAN_MAX_UNIQUE_SIZE