server hangs, but port is still binded...

General discussion about the game. Pull up a stool and tell us your tale!
Post Reply
nostromo
Mean-Looking Mercenary
Posts: 6
Joined: Mon 10.05.2004, 09:04

server hangs, but port is still binded...

Post by nostromo » Mon 14.02.2005, 04:44

hello there!

i'm running a mAngband-server on openBSD. i start "runserv"
on boot which then runs smoothly and really relaunches an
instance of mAngband, whenever the server crashes.

so i now always get a mangband/runserv process listed, and
also the port is binded, but the service itself ain't reachable.
so any script i write turns out useless. i had a cronjob checking
for a running process of mAngband, i had a script checking for
LISTENING-state on netstat-output, etc.
what else can i do to make sure the server is really running?
sum perl-script connecting to 13468?
furthermore: what could be the problem here? any known issues
i missed, or is it sumthing no one has ever heard of before?
if sumone could point me to a patch or whatever, this would be
really great!

TIA,
     nos

edit: server-version: mangband_0.7.2a

Crimson
King Lich
Posts: 315
Joined: Sat 26.10.2002, 15:00
Location: Mangband Project Team Member
Contact:

Re: server hangs, but port is still binded...

Post by Crimson » Sat 30.04.2005, 10:31

SO_REUSE (Or the varient that BSD uses) isn't being applied correctly.  This was a common bug in much earlier versions of the code, but was fixed (for linux at least) in version 0.7.


Got some Network Fu?  a patch would be great, and I don't have a bsd devel box.
Are you not entertained?
Is this not what you came here for?

-- Maximus Decimus Meridias, The Gladiator

nostromo
Mean-Looking Mercenary
Posts: 6
Joined: Mon 10.05.2004, 09:04

Re: server hangs, but port is still binded...

Post by nostromo » Sun 01.05.2005, 11:37

i switched to freeBSD in march. since problems still occured
with version 0.7.2a, i use 0.7.0 now. it seems the server
doesn't crash that often now.

btw: the server always crashed when "@" was entered
      (the list of players online), amongst other unrepro-
     ducable crashes.

what you mean by "Network Fu"? i'd be glad to help with
a patch, though i'm no programmer at all.


br,
  nos

Crimson
King Lich
Posts: 315
Joined: Sat 26.10.2002, 15:00
Location: Mangband Project Team Member
Contact:

Re: server hangs, but port is still binded...

Post by Crimson » Tue 03.05.2005, 18:23

create a directory just off of your mangband server home directory called "tmp".  This directory is used to create tmp files for commands such as @ and identify, and such.

--Crimson
Are you not entertained?
Is this not what you came here for?

-- Maximus Decimus Meridias, The Gladiator

Post Reply