NetTalk Central

Author Topic: How to update the exe  (Read 3354 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1869
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
How to update the exe
« on: May 20, 2009, 04:33:52 AM »
Hi,
Suppouse you have a server running, it is used for many users arround the world at diferent times, that is, the server never sleeps.
Then how to update the exe bodering the useres the less possible.

What if I set a flag that make the server to logout all the users, then when a user goes to any page that "must be logged in" it is redirect to the login page, the login page (using the same flag) shows a message to inform the user that the server will be disconnected for maintenence?

Any other idea?
Alberto


-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: How to update the exe
« Reply #1 on: May 20, 2009, 09:27:38 AM »
Hi Alberto,

It turns out that Land is not distributed evenly over the globe. So actually there are periods when your server will sleep. That's the best time to do updates.

Incidentally updating in NetTalk 5 is easier, because it can be a DLL, and the Dll can be unloaded, replaced, and reloaded in a couple seconds. And the Session Queue is not lost because that's held by the Exe.

So it's probably not a big issue yet for you - hopefully by the time it is you can use NetTalk 5.

Cheers
Bruce



DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to update the exe
« Reply #2 on: May 20, 2009, 07:02:57 PM »
NetTalk 5?  Do tell..

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: How to update the exe
« Reply #3 on: May 20, 2009, 10:52:15 PM »
Hi Don,

I've been working on NetTalk 5 for some time now Don. A lot of the original stuff has actually made it into NetTalk 4 along the way.

One key feature is the introduction of the (optional) ability to make your NetTalk app a DLL instead of an EXE. Then the DLL can be "used" by a "host" server. This allows one server to handle multiple DLL's (multiple "sites") but at the same time use only one IP/Port combination.

We're also looking at supporting PHP pages from inside NetTalk - that project is well under way, but not yet completed. In essence this would allow you to mix PHP code with NetWebServer code, and also allow you to host PHP sites with the NetTalk server. It's a work in progress though, and there are, as you might expect, some technical hurdles to overcome.

There are a bunch of other features, scripts, optimizations and so on that will be in as well, although probably not in the first release. I'd like to keep the jumps from one release to another as small as possible so that upgrading is no big deal.

Cheers
Bruce


DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: How to update the exe
« Reply #4 on: May 21, 2009, 01:30:23 PM »
That's sounds very interesting.  I'm sure if NetTalk 5 is anything like NetTalk 4 then it will be great.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11