I just tried that using the API Reference utility and it doesn't cause any problems. The API call returns "Ok" and there are no errors recorded.elia.nm07 wrote:i read session ids and with sendMessage api i tell every one that player x won the jackpot, if the sessionid is disconnected , can this cause the crash or violationaccess errors?
pmserver crashes when tournaments are running
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
By the way, are your using PHP/Curl for your API calls? If so try inserting this command in with the other curl options:
I haven't tested it myself but that is supposed to drop the connection once it completes. I'm wondering if that will fix your problem with the "Max FP Connections Per IP" setting on your API calls.
Code: Select all
curl_setopt($curl, CURLOPT_FORBID_REUSE, true);
Re: pmserver crashes when tournaments are running
i am using asp.net mvc ,
i sole the problem of calling api with api access ip withelist option
i was suspect for sendmessage api for the source of the crashesh,
i developed a backgoomon by nodejs and when i want to send message to a socket that is already disconnected i was facing with some exceptions ,
i thinked maybe the cause of crash is may be sendmessage to a session id that is already disconnected
i sole the problem of calling api with api access ip withelist option
i was suspect for sendmessage api for the source of the crashesh,
i developed a backgoomon by nodejs and when i want to send message to a socket that is already disconnected i was facing with some exceptions ,
i thinked maybe the cause of crash is may be sendmessage to a session id that is already disconnected
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
It probably has a similar option to manually drop the connection when competed.elia.nm07 wrote:i am using asp.net mvc
The "Max FP Connection Per IP" setting does not currently look at the API Whitelist setting. So it could still throttle your API calls.i sole the problem of calling api with api access ip withelist option
I assume you mean ConnectionsMessage in the API. Like I mentioned above, using that command on a disconnected SessionID did not cause any issues when I tested it.i thinked maybe the cause of crash is may be sendmessage to a session id that is already disconnected
Re: pmserver crashes when tournaments are running
Hi Again ,
I get all users with api accountslist for calculating rakeback , and i will set erak=0 for all users what they have erake (with accountedit)
does this feature may be the source of the crash ?
in will do this three times a day , if there is any tournament run or player is online , can it makes many problems ?
I get all users with api accountslist for calculating rakeback , and i will set erak=0 for all users what they have erake (with accountedit)
does this feature may be the source of the crash ?
in will do this three times a day , if there is any tournament run or player is online , can it makes many problems ?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
If you're calling AccountsEdit hundreds (or thousands) of times in a short amount of time then it could cause an issue. Monitor the thread count the next time you do that and see what it does.elia.nm07 wrote:and i will set erak=0 for all users what they have erake (with accountedit)
Re: pmserver crashes when tournaments are running
I,ve put a thread.sleep(500);
to wait 500 ms before each accountsEdit,
with this j will call accountsedit just 2 persecond, is it ok?
tnx , but my main question was different , I am asking if a player is online and is playing (the rake is continuously change)
when i want to edit his account , if at the same time you want to update his erake , and me want to reset his erake via accountedit api (if this timing happen), is this situation potentially cause a crash ?
to wait 500 ms before each accountsEdit,
with this j will call accountsedit just 2 persecond, is it ok?
tnx , but my main question was different , I am asking if a player is online and is playing (the rake is continuously change)
when i want to edit his account , if at the same time you want to update his erake , and me want to reset his erake via accountedit api (if this timing happen), is this situation potentially cause a crash ?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
Probably, but you need to monitor the thread count to see.elia.nm07 wrote:I,ve put a thread.sleep(500);
to wait 500 ms before each accountsEdit,
with this j will call accountsedit just 2 persecond, is it ok?
No, that is safe.tnx , but my main question was different , I am asking if a player is online and is playing (the rake is continuously change)
when i want to edit his account , if at the same time you want to update his erake , and me want to reset his erake via accountedit api (if this timing happen), is this situation potentially cause a crash ?
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: pmserver crashes when tournaments are running
You should patch up to 6.11 as I just added a couple of features that should help: thread count display and a new "Max connection whitelist" setting.