Socket>>sendData: and slow networks

John M McIntosh johnmci at smalltalkconsulting.com
Tue Jul 11 00:09:48 UTC 2000


on 7/10/00 5:19 AM, Lex Spoon at lex at cc.gatech.edu wrote:

> John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
>> 
>> Anyone want to write this? I've a need for it for correspondence/flow
>> because the existing behavior is to wait forever for
>> connect/waitForReadability etc.
> But popping up a dialog directly from low-level networking code is
> annoying when there's no UI available.  It just sucks for your server to
> stop running because some dialog has popped up on the server screen!
> 
> -Lex
> 

Well the trick here is you popup the dialog in a different thread, so you
don't block the one that is actually waiting. You could also make the dialog
go away after say 10 minutes to avoid problems with these cluttering the
screen on a server, and of course if the thread in question stops waiting we
make the dialog go away.
 

--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7  E94A EE69 2D21 46FC 3BE6
===========================================================================





More information about the Squeak-dev mailing list