[squeak-dev] NetNameResolver useOldNetwork seems perhaps too conservative?
Tobias Pape
Das.Linux at gmx.de
Tue Jun 7 08:23:29 UTC 2022
Hi
> On 7. Jun 2022, at 09:52, Tony Garnock-Jones <tonyg at leastfixedpoint.com> wrote:
>
> Hi all,
>
> In Socket>>initialize:family:, there's a line
>
> NetNameResolver useOldNetwork ifTrue: [ ^self initialize: socketType ].
>
> that has been conserved across all the versions of the method I have in my image (back to 2010).
>
> What harm would be done if we simply *removed it*, do we think? It seems bad to *pretend* to allocate a socket of the requested family but really to not do so!
TBF, Socket code is still a hot mess.
Some stuff only works in old mode, some stuff only works in non-old mode.
I'd actually be interested what happened if you removed it…
I'm grabbing the popcorn :D
-t
More information about the Squeak-dev
mailing list
|