[squeak-dev] Daily Commit Log

commits at source.squeak.org commits at source.squeak.org
Wed Jun 20 23:55:06 UTC 2012


Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24 hours:

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005390.html

Name: Network-dtl.123
Ancestors: Network-ul.122

Merge Network-ul.100 (Network changes from the EToys repository) from inbox.

Make the network tests run with no new failures. Two failures were present on my unix system for #testSendTimeout and #testSocketReuse. These are preexisting failures unrelated to this update (probably Linux platform related).

NetNameResolver may be set to UseOldNetwork = false to partially restore previous behavior, as may be required for compatibility with external packages. Test results are identical for either mode.

To the extent possible, socket addresses are represented as instances of SocketAddress when UseOldNetwork is false, and as ByteArray otherwise. In particular, Socket>>localAddress and Socket>>remoteAddress now answer a SocketAddress unless UseOldNetwork is set false. This is a possible source of problems for external packages.

Some primitives expect IPV4 byte array arguments in all cases, possibly some future updates will be in order for these.

Implement ByteArray>>asSocketAddress to use NetNameResolver and primitives to create a SocketAddress for the old style byte array. Implement SocketAddress>>asByteArray for the reverse conversion, assuming that the socket address is IPV4.

Etoys note: A SocketAddress may be initialized only through primitive calls. Therefore creating a new instance from a ByteArray is invalid. The #asSocketAddress implementation in the Etoys image should be updated accordingly.

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005391.html

Name: Network-bf.124
Ancestors: Network-dtl.123

Do not use asSocketAddress in the old network code.

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005392.html

Name: Network-dtl.125
Ancestors: Network-bf.124

Move ByteArray>>asSocketAddress to Network package

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005393.html

Name: Network-dtl.126
Ancestors: Network-dtl.125

Set the UseOldNetwork flag at image startup if ipv6 primitives are not present in the VM.

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005394.html

Name: Network-dtl.127
Ancestors: Network-dtl.126

Protect SocketAddressInformation creation with a mutex semaphore because it calls primitives that maintain state within the SocketPlugin.

Raise ConnectionTimedOut if a connection request has actually timed out, otherwise raise ConnectionRefused.

Fix exception message in connectTo:port:waitForConnectionFor: to use hostAddress printString because hostAddress is now a SocketAddress.

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005395.html

Name: Network-dtl.128
Ancestors: Network-dtl.127

primitiveSocketSendUDPDataBufCount expects an ipv4 byte array address, so do hostAddress asByteArray in sendUDPData:toHost:port:

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005396.html

Name: Network-dtl.129
Ancestors: Network-dtl.128

Merge Network-mtf.115 from the inbox:

Name: Network-mtf.115
Ancestors: Network-ul.114

made multicast sending when the network is disconnected not result in an infinite loop. I don't know if this is correct or not,. To reproduce:

- Unplug your network
- Do a dummy multicast send:
Socket newUDP sendData: 'XXX' toHost: #[239 99 99 99] port: 9999
- Result before patch: infinite loop
- Result after patch: NetworkError

Issue originally discovered in OpenCobalt's UPnP service

=============================================

http://lists.squeakfoundation.org/pipermail/packages/2012-June/005397.html

Name: Network-dtl.130
Ancestors: Network-dtl.129

Merge Network-chc.120 from inbox:

Name: Network-chc.120
Ancestors: Network-tonyg.119

http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-June/151440.html

FileList>>labelString was changed but perhaps it didn't change to accommodate ServerDirectory. As such the FTP folder in FileList has been broken. The process chokes in:

pathAndPattern
	^directory fullName, directory slash, pattern
	
because ServerDirectory has neither #fullName nor #slash. I've added them and now the FTP directory at the bottom of the file list in FileList works again.

=============================================


More information about the Squeak-dev mailing list