Re: [Pharo-project] Swazoo keeping HTTPConnections open

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: [Pharo-project] Swazoo keeping HTTPConnections open

Janko Mivšek
Patch included in Swazoo. Thanks Nico!

        - ConfigurationOfSwazoo2 2.3 also updated

Best regards

S, Nicolas Petton piše:

> Hi Bernat,
> I have a patch that may solve your problem that will be integrated
> mainstream. In the meantime:
> HTTPConnection>>close
> self stream notNil ifTrue: [self stream close. stream := nil].
> self server notNil ifTrue: [self server removeConnection: self].
> self loop notNil ifTrue: [
> | process |
> process := loop. loop := nil.
> process terminate]
> HTH,
> Nicolas
> Le mercredi 22 juin 2011 à 11:36 +0200, Bernat Romagosa a écrit :
>> Hi list, I don't know where should I address this issue, so please
>> excuse me if this mail is a bit off-topic.
>> I've been running an Iliad app in Pharo for a couple of months, and
>> just today I realised the image was behaving quite sluggish, so I
>> checked the process browser and discovered thousands (literally) of
>> Delay >> wait instances going on. Inspecting them, I found out they
>> had all been spawned by Swazoo's HTTPConnection >> interact.
>> So what I did is HTTPConnection allInstancesDo: [:c | c close], which
>> took quite a while to conclude, and the problem was solved, but these
>> processes keep on spawning every time a user logs in, and they never
>> seem to die unless I tell them to.
>> Also, killing these processes seems to have no effect on the
>> application behaviour at all, all sessions stay where they should and
>> everything is alright, so I'm even considering using a scheduler that
>> kills'em'all every hour or so (how elegant could this be!)
>> Has anybody ran into a similar issue before?
>> Thanks!
>> --
>> Bernat Romagosa.

Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
Swazoo-devel mailing list
[hidden email]