The Trunk: Network-ul.133.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-ul.133.mcz

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

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

Name: Network-ul.133
Author: ul
Time: 25 July 2012, 4:32:28.066 pm
UUID: 744a1bc1-4570-b448-ad76-d603fb19e332
Ancestors: Network-dtl.132, Network-kb.132

Merged.

=============== Diff against Network-dtl.132 ===============

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!