realbasic-nug
[Top] [All Lists]

Re: Socket Taking Over. Need a Thread?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Socket Taking Over. Need a Thread?
From: Chris Little <cslittle at mac dot com>
Date: Sun, 30 Dec 2007 13:31:06 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AchLEiOrYgOxlLcFEdyRoQAX8shUyA==
Thread-topic: Socket Taking Over. Need a Thread?
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.

Chris


_______________________________________________
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>