Jump to content
Korean Random

proxy server code


Recommended Posts

Hi all,

in the past I follow the code development of your proxy server on code.google.com

I used it to make a personal small mirror with a different policy regarding records expire date and I had fun studying automatic update procedures.

 

With XVM-5.0.1-test1 I can see that your proxy are using 2.0 API but I can not find any update on proxy code on site.

You will be release updated code or you will keep it secret?

 

Thank you very much

Link to comment
Short link
Share on other sites

test in progress...

 

 

I put EU appID on config/config.json and now I receive this error:

TypeError: Cannot read property 'type' of undefined
    at /xvm/proxy2/updater.js:278:47
    at Array.forEach (native)
    at createFromHttp (/xvm/proxy2/updater.js:276:16)
    at /xvm/proxy2/updater.js:145:30
    at /xvm/proxy2/updater.js:235:9
    at /xvm/proxy2/node_modules/async/lib/async.js:530:17
    at /xvm/proxy2/node_modules/async/lib/async.js:116:25
    at /xvm/proxy2/node_modules/async/lib/async.js:24:16
    at Request._callback (/xvm/proxy2/node_modules/async/lib/async.js:527:21)
    at Request.self.callback (/xvm/proxy2/node_modules/request/request.js:129:22)
Edited by nuciluc
Link to comment
Short link
Share on other sites

 

test in progress...

 

 

I put EU appID on config/config.json and now I receive this error:

TypeError: Cannot read property 'type' of undefined
    at /xvm/proxy2/updater.js:278:47
    at Array.forEach (native)
    at createFromHttp (/xvm/proxy2/updater.js:276:16)
    at /xvm/proxy2/updater.js:145:30
    at /xvm/proxy2/updater.js:235:9
    at /xvm/proxy2/node_modules/async/lib/async.js:530:17
    at /xvm/proxy2/node_modules/async/lib/async.js:116:25
    at /xvm/proxy2/node_modules/async/lib/async.js:24:16
    at Request._callback (/xvm/proxy2/node_modules/async/lib/async.js:527:21)
    at Request.self.callback (/xvm/proxy2/node_modules/request/request.js:129:22)

Do you got message

Tanks list updated

after updater.js start?

Link to comment
Short link
Share on other sites

yes, I clear all log and run updater.js

{"level":"info","message":"MongoDB connected: xvm","timestamp":"2013-10-31T08:52:36.191Z"}
{"level":"info","message":"Tanks list updated","timestamp":"2013-10-31T08:52:36.249Z"}
{"level":"info","message":"[UPDATER] no more players for update for server RU.... Cooldown","timestamp":"2013-10-31T08:52:36.475Z"}
{"level":"info","message":"[UPDATER] no more players for update for server KR.... Cooldown","timestamp":"2013-10-31T08:52:36.477Z"}
{"level":"info","message":"[UPDATER] no more players for update for server US.... Cooldown","timestamp":"2013-10-31T08:52:36.478Z"}
{"level":"info","message":"[UPDATER] no more players for update for server SEA.... Cooldown","timestamp":"2013-10-31T08:52:36.479Z"}
{"level":"info","message":"[UPDATER] no more players for update for server VTC.... Cooldown","timestamp":"2013-10-31T08:52:36.480Z"}
{"level":"info","message":"[UPDATER] fetched new players for server EU","timestamp":"2013-10-31T08:52:36.487Z"}

after that I receive the error I posted before and node die

 

node version 0.10.18, should I change it ?

 

EDIT: I tried to use development files instead of default ones and it seems work

EDIT2: no same error :(

EDIT3: go back to default branch, modified commandController.js from http://api.worldoftanks.ru/2.0/encyclopedia/tanks/ to http://api.worldoftanks.eu/2.0/encyclopedia/tanks/

no error, but every request fail.. too many request and API server timeout

Edited by nuciluc
Link to comment
Short link
Share on other sites

decreased intensity on config/config.json to 2

and changed updater.js

var intensity = Math.ceil(1000 / (server.intensity || 5));

to

var intensity = Math.ceil(1000 / (server.intensity));

testing in progress...

Link to comment
Short link
Share on other sites

  • 2 weeks later...
  • 1 month later...

I solve update issue with a little workaround (but I have less and less requests from master XVM server).

I put server code on another little server, using the same DB and doing reverse update with different IP and different appID.

 

So first update script use this query

missed.find({ _id: { $gte: limits.min, $lte: limits.max }}, { _id: 1 }).sort({ dt: 1 }).limit(config.get("updater:playersPoolSize"));

second one use this

missed.find({ _id: { $gte: limits.min, $lte: limits.max }}, { _id: 1 }).sort({ dt: -1 }).limit(config.get("updater:playersPoolSize"));

 

I update 4 records every 5 seconds for server and during night all queue goes away.

 

Hope this can help somehow :no1:

Link to comment
Short link
Share on other sites

  • 2 weeks later...
  • 2 months later...

dear @iBat, @sirmax, , ,

I'm following this project from more than a year, especially XPM and server side code.
I learned a lot of things regarding json, javascript, python, mongodb, java and tuning web-apps.
Yesterday I found that java-xvm repository moved or was hidden.

I would like to contribute somehow, because I love opensource projects.
It will be possible?
I don't know Russian (I would a bit [:sob0:] ) but I can read/write English without problems.

In the meantime I suggest some entries for XVM Italian translation on by-reservation.com

I wait your answer.

Link to comment
Short link
Share on other sites

Sorry, but we don't provide support to server-side code. Also, java-xvm code will be not published and was be written only for our internal use.

 

Thanks for your suggestion of help, but currently we don't need any help with server-side code. But we'll keep in mind your suggestion.

 

If you want to help our project, you can write code for new XVM features, or help us with translation to italian for docs and official xvm website.

 

Thanks for your message.

Link to comment
Short link
Share on other sites

I don't need any support to server code.

I wrote to Sirmax, he told me to write here.

 

I have a copy of java-xvm source code, I tested and tuned a bit.

But now you close-source it, so I will not use it anymore, because I can not update it.

 

I start learning proxy code because you often have problem on your server.

And now you have problems, again..

I will continue to stand by, working with servers is my primary job.

Link to comment
Short link
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...