[BUG]Can't accept socket connections on Windows?
Julian Fitzell
julian at beta4.com
Mon Aug 18 06:45:53 UTC 2003
A little more info on this one from Avi and I testing some more:
- The same problem occurs in Linuz
- I can make it work with OldSocket
- If you use #listenOn:backlogSize: instead of #listenOn: then I get a
Socket back, but if I get a SocketStream on that socket it blocks
forever when trying to read data (works fine with OldSocket)
Julian
julian at beta4.com wrote:
> I don't seem to be able to accept socket connections in Windows XP.
> This using 3.6beta #5395 with the latest 3.5 VM from squeak.org.
>
> I originally tried using KomServices (which required changing a
> #waitForAcceptUntil: to #waitForSocketFor:) and then tried using Socket
> directly, and then tried ConnectionQueue and all seem to exhibit the
> same problem.
>
> The following walkback comes up after executing the following do-it:
>
> socket _ Socket newTCP .
> socket listenOn: 5222.
> (socket waitForAcceptFor: 30).
> socket closeAndDestroy.
>
> It works fine if you don't make a connection within the 30 seconds. But
> if you make a connection then you get the following walkback. Anyone
> have any ideas? I may well be doing something entirely wrong <shrug>...
>
> Julian
--
julian at beta4.com
Beta4 Productions (http://www.beta4.com)
More information about the Squeak-dev
mailing list
|