The Trunk: Network-kb.132.mcz

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

The Trunk: Network-kb.132.mcz

commits-2
Levente Uzonyi uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-kb.132.mcz

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

Name: Network-kb.132
Author: kb
Time: 11 July 2012, 5:19:25.036 pm
UUID: 0a9d192b-3781-4499-b707-1ea6108efa2b
Ancestors: Network-eem.131

Avoid errors in Socket >> #peerName when the new network primitives are not present.

=============== Diff against Network-eem.131 ===============

Item was changed:
  ----- Method: Socket>>peerName (in category 'accessing') -----
  peerName
  "Return the name of the host I'm connected to, or nil if its name isn't known to the domain name server or the request times out."
  "Note: Slow. Calls the domain name server, taking up to 20 seconds to time out. Even when sucessful, delays of up to 13 seconds have been observed during periods of high network load."
 
+ ^NetNameResolver useOldNetwork
+ ifFalse: [ self remoteSocketAddress hostName ]
+ ifTrue: [ NetNameResolver
+ nameForAddress: self remoteAddress
+ timeout: 20 ]!
- ^self remoteSocketAddress hostName!