View topic - Pytasserver



All times are UTC + 1 hour


Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Pytasserver
PostPosted: 14 Aug 2009, 13:40 
User avatar

Joined: 19 Jun 2008, 13:05
I have been working for some months on a new python server and now seems to be almost finished , you can download it from git://tiz.ath.cx/pytasserver.git
Actually also if it is written in python it will NOT work on windozÔé¼ cause it uses some linux only functions and it requires a mysql database.
It has full ChanServless channel management, channel ip-account bans, channel ip-account mutes, ip bans controlled through a separate server and command specific flood limit.
I'd like that it gets deployed at least as backup server for now :-)


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 20:50 
Community Lead
User avatar

Joined: 10 Apr 2006, 04:05
Location: Finland, 1944
I say, we alternate uber and pytas every eight hours.


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 21:02 
User avatar

Joined: 19 Jun 2008, 13:05
I think my server is more suitable for backup server, cause it has a special mode that allows users to connect without register and at the same time moderators to register accounts and get moderator flag :-)


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 21:08 
Moderator
User avatar

Joined: 02 Jan 2007, 16:18
Location: Bremen, Germany
Did you host one anywhere so we can test it a bit?


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 21:22 
User avatar

Joined: 19 Jun 2008, 13:05
It' the one that we used for testing tiz.ath.cx:8200 / tizbac.dyndns.org:8200


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 21:58 

Joined: 13 Aug 2006, 17:55
Can you fix indentation please?
Actually i am mot sure if it happens on my side only but i am getting stuff like mixed tabs and spaces..

Example:

What is supposed to be:
Code:
for s in list(self.clients.keys()):
  if s.fileno() == fd[0]:
    newsocket = s
    iR.append(newsocket)


Shows up as:
Code:
for s in list(self.clients.keys()):
  if s.fileno() == fd[0]:
newsocket = s
iR.append(newsocket)

and fails with some variable newsocket referenced before assignment error

Also i was getting crashes in Main.run on:
(stuff like getting different random errors every time)
Code:
self.database.query("SELECT name,founder,operators,accountmutes,topic,password,id,ipmutes,accountbans,ipbans FROM channels")
res = self.database.store_result()

I tried
Code:
db = mysql.connect("localhost", "root", "passwordpassword", "pytasserver")
mysql.query("SELECT name,founder,operators,accountmutes,topic,password,id,ipmutes,accountbans,ipbans FROM channels")
ret = mysql.store_result()

which succeeded every time.

I was raging/messing around a while then i noticed
Code:
thread.start_new_thread(self.connectionpingthread,())

connectionpingthread then calls sd.ping.
Unlike the other methods query and store_result where you mess with synchronisation by lock.acquire/release the ping method has none.

After commenting out the start_new_thread call everything magically worked fine..
Is it possible that there is some weird race condition whatever thing going on?


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 22:36 
Redacted
User avatar

Joined: 11 Jul 2007, 16:47
MelTraX wrote:
Did you host one anywhere so we can test it a bit?

nobody ever volunteered to test mine; I had to at least ask :/


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 23:21 
Moderator
User avatar

Joined: 02 Jan 2007, 16:18
Location: Bremen, Germany
I'm testing yours for days now and posted a bugreport in your thread.. Haven't really been around while you first released uberserver.


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 23:26 
User avatar

Joined: 19 Jun 2008, 13:05
Andrej: the bug on loading is a known mysql bug and i can do nothing about it, just reload 2 times and it'll start

Yes i've used mixed spaces and tabs but doesn't cause any problems on all python enviromnents that i have


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 23:30 
Redacted
User avatar

Joined: 08 Jan 2007, 06:13
Location: Don't be silly. If there's no machine heaven, where do all the toasters go?
I think a python tab is defined to 8 spaces as part of the language.


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 14 Aug 2009, 23:57 
Moderator
User avatar

Joined: 02 Jan 2007, 16:18
Location: Bremen, Germany
By the way: If it stands for "Python TA Spring Server" please find a way to get rid of the TA. :D


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 00:06 
User avatar

Joined: 19 Jun 2008, 13:05
The name is the last thing to fix :P


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 01:49 
Community Lead
User avatar

Joined: 10 Apr 2006, 04:05
Location: Finland, 1944
Python Tizbac Adamantium Success Server.


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 02:18 

Joined: 13 Aug 2006, 17:55
i tried to fix it
not 101%% sure if it works because im on windows ;_;

http://www.mediafire.com/?sharekey=5a77d12a8cc58e150de4fc1039a01674e04e75f6e8ebb871

if that doesnt work:
git://desu.no-ip.info:6667/var/repos/pytasserver
branchname "fixident"

you have no excuse for using
tabs followed by spaces followed by tabs
i mean lol what


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 02:26 
Redacted
User avatar

Joined: 11 Jul 2007, 16:47
    that's just what happens when he:
  • copies code from me and mixes it with his own code
  • switches operating systems
  • switches text editors
  • codes while drunk
  • lets the cat help


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 03:18 
User avatar

Joined: 02 May 2005, 02:56
Location: Canada
aegis wrote:
  • lets the cat help


http://www.bitboost.com/pawsense/


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 15 Aug 2009, 19:17 
User avatar

Joined: 19 Jun 2008, 13:05
aegis wrote:
that's just what happens when he:
# copies code from me and mixes it with his own code
# switches operating systems
# switches text editors
# codes while drunk
# lets the cat help

only one is true, it's because i use both gedit and kate , the first one uses tabs, second one uses spaces
your code is just 0.1% actually and it'll be 0.0 soon


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 17 Aug 2009, 09:41 
Spring Developer

Joined: 01 Jun 2005, 10:36
Location: The Netherlands
Settings->Configure kate->Editing->General, untick 'insert spaces instead of tabulators'.


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 12 Nov 2010, 12:42 

Joined: 19 May 2008, 17:51
how to use your server ? where is the instructions ?


Top
 Offline Profile  
 
 Post subject: Re: Pytasserver
PostPosted: 12 Nov 2010, 18:56 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
Get uberserver from aegis.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.