Ulysses Stuff > Ulysses Release Archives

Uban PHP Viewer

<< < (7/11) > >>

Megiddo:
Hmm, figured it was threaded because it says so on the release thread. :P

spbogie:
Ah, I get it now. If you call it with a noblock flag, then it spawns a thread and returns a refrence which you can use to check later to see if it completed and extract the information from it. It is still blocking by default though.

Lt.Smith:

--- Quote from: spbogie on June 08, 2008, 02:19:33 PM ---Ah, I get it now. If you call it with a noblock flag, then it spawns a thread and returns a refrence which you can use to check later to see if it completed and extract the information from it. It is still blocking by default though.

--- End quote ---

See, that just goes above my head somewhat, not sure how to do it. What I noticed when I used SQL for server logs, is it froze the entire game for as long as it took to establish a connection and execute the query. A combination of cheap hosting services and data having to go across the Atlantic led to an unplayable game, but 200ms of lag every 5-7 minutes goes unnoticed.

If you guys have info on how to use the gm_mysql module without it blocking, I'm all ears. For logs I wouldn't care about what the query (always an INSERT, obviously) returned anyway, except maybe to notify the server admin when a query failed.

spbogie:

--- Quote from: Lt.Smith on June 09, 2008, 01:05:02 PM ---See, that just goes above my head somewhat

--- End quote ---

Haha, don't worry about it. We tend to loose a lot of people when we go back and forth like that (Jam can attest to that one).

Basically, what it means is that the way UBan is written right now all calls to the database will block until they can return a result. Changing it over to use asynchronux (non-blocking) calls would require a bit of a re-think, but nothing overly complex.

JamminR:
Remember the guy in the movie "Office Space".. the one who's job is to talk to the engineers for the customer, that later gets fired because the Bob's think he's useless.
I'm pretty much that guy (but, fortunately, no one on this team is Bob-like)
I'm fortunate enough to be able to code a bit too. :D

:P

[EDIT] - By the way, we've derailed much of NinjaDude's release.
Anyone else care to find a good split point to DevCorner?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version