realbasic-nug
[Top] [All Lists]

Re: Socket Taking Over. Need a Thread?

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Socket Taking Over. Need a Thread?
From: "Theodore H. Smith" <delete at elfdata dot com>
Date: Mon, 31 Dec 2007 14:52:47 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 12633 dot 1199049253 dot 259 dot realbasic-nug at lists dot realsoftware dot com>
> From: Chris Little <cslittle at mac dot com>

> on 12/30/07 12:32 PM, Christopher Jett at lists at jettfuel dot net wrote:

>> The socket is a subclassed TCPSocket that is handling incoming
>> requests from a browser.  It is during a large incoming request (i.e.
>> a large file upload from an HTML form) that the app becomes
>> unresponsive while the socket is receiving the large amount of data.
>> I don't see any .Yields anything for a TCPSocket.
>
> It's on HttpSocket so it's not going to help you. I wonder if  
> writing the
> file to disk as you receive it is better than trying to cache it in  
> memory.
> Receiving a large file is bound to cause some memory swapping if it  
> happens
> frequently.

I see, sorry about that. Yes the exact name is "Yield", and it's on  
HTTPSocket.

I suppose the other solution is to switch to HTTPSocket.. but it  
probably will be harder to do that than use the other solutions that  
other people are suggesting.

Sorry about that! I'm sure some other people here have better answers  
on this one :)

--
http://elfdata.com/plugin/
"String processing, done right"


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>