Networking problems

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

Networking problems

Michael Rueger-6
Hi all,

a quick survey on the networking problems:
- which platform
- debug logs
- issue tracker entries

I've seen a few reports on the mailing list but mostly mentioned in
emails about a different subject, so a bit more information would help
to track down the problem(s) :-)

Thanks

Michael

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Networking problems

Stéphane Ducasse
On mac with VM 4.0.0 + 10293cl + fix copyandpaste
httpGetDocument: url args: args accept: mimeType request: requestString
I get InvalidSocketStatusException: socket ststus must Unconnected  
befpre....
        connectNonBlockingTo:port:

Stef

On Apr 27, 2009, at 12:58 PM, Michael Rueger wrote:

> Hi all,
>
> a quick survey on the networking problems:
> - which platform
> - debug logs
> - issue tracker entries
>
> I've seen a few reports on the mailing list but mostly mentioned in
> emails about a different subject, so a bit more information would help
> to track down the problem(s) :-)
>
> Thanks
>
> Michael
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Networking problems

Alexandre Bergel
Same thing for me

Alexandre


On 27 Apr 2009, at 14:48, Stéphane Ducasse wrote:

> On mac with VM 4.0.0 + 10293cl + fix copyandpaste
> httpGetDocument: url args: args accept: mimeType request:  
> requestString
> I get InvalidSocketStatusException: socket ststus must Unconnected
> befpre....
> connectNonBlockingTo:port:
>
> Stef
>
> On Apr 27, 2009, at 12:58 PM, Michael Rueger wrote:
>
>> Hi all,
>>
>> a quick survey on the networking problems:
>> - which platform
>> - debug logs
>> - issue tracker entries
>>
>> I've seen a few reports on the mailing list but mostly mentioned in
>> emails about a different subject, so a bit more information would  
>> help
>> to track down the problem(s) :-)
>>
>> Thanks
>>
>> Michael
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Networking problems

Stéphane Ducasse
I have the same behavior with VM 400 and 401

Alex do you succeed to load Moose?

Stef


On Apr 27, 2009, at 3:29 PM, Alexandre Bergel wrote:

> Same thing for me
>
> Alexandre
>
>
> On 27 Apr 2009, at 14:48, Stéphane Ducasse wrote:
>
>> On mac with VM 4.0.0 + 10293cl + fix copyandpaste
>> httpGetDocument: url args: args accept: mimeType request:
>> requestString
>> I get InvalidSocketStatusException: socket ststus must Unconnected
>> befpre....
>> connectNonBlockingTo:port:
>>
>> Stef
>>
>> On Apr 27, 2009, at 12:58 PM, Michael Rueger wrote:
>>
>>> Hi all,
>>>
>>> a quick survey on the networking problems:
>>> - which platform
>>> - debug logs
>>> - issue tracker entries
>>>
>>> I've seen a few reports on the mailing list but mostly mentioned in
>>> emails about a different subject, so a bit more information would
>>> help
>>> to track down the problem(s) :-)
>>>
>>> Thanks
>>>
>>> Michael
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Networking problems

Alexandre Bergel

> Alex do you succeed to load Moose?

With Pharo0.1Core-10281cl yes
If I update this image, no. I cannot even load OBAlpha. The issue is  
the socket one that you mentioned earlier today.

Alexandre

>
> On Apr 27, 2009, at 3:29 PM, Alexandre Bergel wrote:
>
>> Same thing for me
>>
>> Alexandre
>>
>>
>> On 27 Apr 2009, at 14:48, Stéphane Ducasse wrote:
>>
>>> On mac with VM 4.0.0 + 10293cl + fix copyandpaste
>>> httpGetDocument: url args: args accept: mimeType request:
>>> requestString
>>> I get InvalidSocketStatusException: socket ststus must Unconnected
>>> befpre....
>>> connectNonBlockingTo:port:
>>>
>>> Stef
>>>
>>> On Apr 27, 2009, at 12:58 PM, Michael Rueger wrote:
>>>
>>>> Hi all,
>>>>
>>>> a quick survey on the networking problems:
>>>> - which platform
>>>> - debug logs
>>>> - issue tracker entries
>>>>
>>>> I've seen a few reports on the mailing list but mostly mentioned in
>>>> emails about a different subject, so a bit more information would
>>>> help
>>>> to track down the problem(s) :-)
>>>>
>>>> Thanks
>>>>
>>>> Michael
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>>
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Closure problem? (was: Re: Networking problems)

Michael Rueger-6
In reply to this post by Stéphane Ducasse
Stéphane Ducasse wrote:
> On mac with VM 4.0.0 + 10293cl + fix copyandpaste
> httpGetDocument: url args: args accept: mimeType request: requestString
> I get InvalidSocketStatusException: socket ststus must Unconnected  
> befpre....
> connectNonBlockingTo:port:

After testing it for a while it seems this might be connected to a
problem with closures and garbage collection. The network code works
fine most of the time, but then suddenly creating a new socket returns
an invalid one, thus the exception in the connect.

Creating a new socket involves the following sequence:

newTCP: family
        "Create a socket and initialise it for TCP"
        self initializeNetwork.
        ^[ super new initialize: TCPSocketType family: family ]
                repeatWithGCIf: [ :socket | socket isValid not ]

and then on BlockContext/Closure

repeatWithGCIf: testBlock
        | ans |
        "run the receiver, and if testBlock returns true, garbage collect and
run the receiver again"
        ans := self value.
        (testBlock value: ans) ifTrue: [ Smalltalk garbageCollect. ans := self
value ].
        ^ans

Ideas anyone?

Michael



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Closure problem? (was: Re: Networking problems)

Stéphane Ducasse
It seems that when I load moose.
I get always the same error. So may be this is reproceable.
If you want to give a try
        Moose on SS
        MooseLoader load.

Stef
On Apr 27, 2009, at 5:10 PM, Michael Rueger wrote:

> Stéphane Ducasse wrote:
>> On mac with VM 4.0.0 + 10293cl + fix copyandpaste
>> httpGetDocument: url args: args accept: mimeType request:  
>> requestString
>> I get InvalidSocketStatusException: socket ststus must Unconnected
>> befpre....
>> connectNonBlockingTo:port:
>
> After testing it for a while it seems this might be connected to a
> problem with closures and garbage collection. The network code works
> fine most of the time, but then suddenly creating a new socket returns
> an invalid one, thus the exception in the connect.
>
> Creating a new socket involves the following sequence:
>
> newTCP: family
> "Create a socket and initialise it for TCP"
> self initializeNetwork.
> ^[ super new initialize: TCPSocketType family: family ]
> repeatWithGCIf: [ :socket | socket isValid not ]
>
> and then on BlockContext/Closure
>
> repeatWithGCIf: testBlock
> | ans |
> "run the receiver, and if testBlock returns true, garbage collect and
> run the receiver again"
> ans := self value.
> (testBlock value: ans) ifTrue: [ Smalltalk garbageCollect. ans :=  
> self
> value ].
> ^ans
>
> Ideas anyone?
>
> Michael
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project