[squeak-dev] The Inbox: Network-fbs.139.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jan 17 22:09:33 UTC 2013


Frank Shearar uploaded a new version of Network to project The Inbox:
http://source.squeak.org/inbox/Network-fbs.139.mcz

==================== Summary ====================

Name: Network-fbs.139
Author: fbs
Time: 17 January 2013, 10:09:20.693 pm
UUID: e3bf7ec3-ab0e-4a77-bfca-c2d79a0f7d61
Ancestors: Network-dtl.138

#1 of 3 letting "Installer ss install: 'Foo'" use the local cache repository if possible.

Fail with a meaningful error if you can't resolve the address from a name. Otherwise you get a nil MNU somewhere deep in the bowels of network code.

=============== Diff against Network-dtl.138 ===============

Item was changed:
  ----- Method: SocketStream class>>openConnectionToHostNamed:port: (in category 'instance creation') -----
  openConnectionToHostNamed: hostName port: portNumber
  	| hostIP |
  	hostIP := NetNameResolver addressForName: hostName timeout: 20.
+ 	^ hostIP
+ 		ifNotNil: [:ip | ^ self openConnectionToHost: ip port: portNumber]
+ 		ifNil: [(NameLookupFailure hostName: hostName) signal].!
- 	^self openConnectionToHost: hostIP port: portNumber!



More information about the Squeak-dev mailing list