[Seaside] Re: Re: Swazoo as reverse proxy?

Brian Brown rbb at techgame.net
Wed Feb 13 19:23:46 UTC 2008


Avi> This is a one line change to Kom.  Look at #pvtNewListener: .  The
Avi> send to #listenOn:backlogSize: can be changed to
Avi> #listenOn:backlogSize:interface: .  For example:

Ha!

I just spent about an hour trying to see my seaside app running in
Parallels on XP from other machines on my network, trying various network
configs and finally just booted into windows to try it from there. I still
couldn't see it except on localhost, and thought... "No, I didn't put that
Kom change in there..." and found:

pvtNewListener: backlogSize
	"Create a new socket that listens on our port.  The backlog is how many
simultaneous
	connections to accept at the same time"

	| listener |
	listener := self socketClass newTCP.
	self socketsToDestroy add: listener.
	listener listenOn: portNumber backlogSize: backlogSize interface: #(127 0
0 1) asByteArray.
	^listener

... from avi 2/5/2006 18:23

so it was only binding to localhost (127.0.0.1).

Very, very strange :)

- Brian



More information about the seaside mailing list