[Spread-users] Illegal session was supplied

Hans-Juergen Schoenig familiar at cybertec.at
Sat Apr 23 03:10:18 EDT 2005


Taj Khattra wrote:

>>        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.
>  
>


aaaaaaaaaaaaaaaaaaaaaaa, i am so sorry ...
ret != ACCEPT_SESSION; that's the way to go, of course ...
things like that happen when you code 16 hours a day ...

    many thanks and sorry ...
        hans




More information about the Spread-users mailing list