[Spread-users] Illegal session was supplied

Taj Khattra taj.khattra at gmail.com
Fri Apr 22 18:07:06 EDT 2005


>         ret = SP_connect("4803 at localhost", "hans", 0, 1, &mbox, NULL);
>         if      (ret == ACCEPT_SESSION)
>         {
>                 elog(NOTICE, "cannot connect to group communication");
>                 SP_error(ret);
>                 exit(1);
>         }

i think this should be "if (ret != ACCEPT_SESSION)"

SP_connect() is probably failing because you passed a NULL pointer as
the last argument - according to the SP_connect() man page it should
be a "pointer to a string big enough to hold at least MAX_GROUP_NAME
characters".

since the call to SP_connect() is failing, the mbox is invalid, so the
call to SP_join() fails too with errno==ILLEGAL_SESSION.




More information about the Spread-users mailing list