[Glass] DNS problematic
Dale Henrichs
dale.henrichs at gemtalksystems.com
Fri Apr 24 15:38:30 PDT 2020
Dario,
At the moment there is no way to set a timeout on the
`getHostAddressByName:` call, but we may add that feature in a future
release so keeps your eyes peeled. It might be possible to change the
time out by modifying /etc/resolv.conf.
If the result begins with '::ffff:' then you should be able to just
remove that prefix from the result and have an IPv4 address.
Dale
****
On 4/24/20 7:57 AM, dario.trussardi65 via Glass wrote:
> *
> Ciao,
> i have a gemstone 3.4.2 run on Ubuntu system.
> Sometime the internet connection is down or the *
> provider's DNS server don't answer.
> *
> In these cases when i do, from tode shell, the command:
> GsSocket getHostAddressByName: 'www.gemtalksystems.com'.
>
> the tode shell is blocked for 100 seconds.
> After the tode report:
>
> *
>
> *
> ArgumentError: getaddrinfo failed, EAI error -3, Errore
> temporaneo nella risoluzione del nome,
> *
>
> *
> --------------------
> *
>
> *
> 1. ArgumentError(AbstractException)>>_signalFromPrimitive: @6
> line 15
> *
>
> *
> 2. GsSocket class>>_twoArgClassPrim:with:with: @1 line 1
> *
>
> *
> 3. GsSocket class>>getHostAddressesByName: @3 line 13
> *
>
> *
> 4. GsSocket class>>getHostAddressByName: @3 line 16
> *
>
> *
> 5. Executed Code
> *
>
> *
> 6. GsNMethod>>_executeInContext: @1 line 1
> *
>
> *
> 7.
> TDStandardEnvironment(TDAbstractEnvironment)>>evaluate:in:literalVars:tempSymbolList:
> @3 line 6
> *
>
> *
> 8.
> TDTopezServer>>evaluateString:inContext:literalVars:withTempSymbolList:
> @5 line 5
> *
>
> *
> 9. TDTopezServer>>evaluateString:inContext:literalVars: @3 line 3
> *
>
> *
> 10.
> TDWorkspaceClientElementBuilder(TDClientSourceElementBuilder)>>evaluateString:topez:
> @4 line 3
> *
>
> *
> 11.
> TDWorkspaceClientElementBuilder(TDClientSourceElementBuilder)>>printItMenuAction:selectedText:
> @4 line 3
> *
>
> *
> 12.
> TDWorkspaceClientElementBuilder(Object)>>perform:with:with: @1
> line 1
> *
>
> *
> 13.
> TDWorkspaceClientElementBuilder(TDWindowBuilder)>>handleMenuActions:listElement:actionArg:
> @13 line 10
> *
>
> *
> 14. [] in
> TDWorkspaceClientElementBuilder(TDClientSourceElementBuilder)>>menuActionBlock
> @10 line 8
> *
>
> *
> 15.
> TDWorkspaceClientElementBuilder(ExecBlock)>>valueWithArguments:
> @1 line 1
> *
>
> *
> 16.
> TDWorkspaceClientElementBuilder(ExecBlock)>>value:value:value:value:value:
> @2 line 11
> *
>
> *
> 17. GsNMethod class>>_gsReturnToC @1 line
> *
>
> I think same problem from relative gem execution.
>
> How i can manage this problematic ?
>
> I can define a relative timeout ?
>
> Other question:
>
> when the dns works the system replies a string like:*
> '::ffff:138.197.233.120'
> *
>
> *
> *
>
> how i can, which is the best way, to translate it to Ipv4 ?
>
> Thanks,
>
> Dario
>
> *
> *
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> https://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20200424/088f8319/attachment-0001.htm>
More information about the Glass
mailing list