🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #925

Re: OutOfMemoryError

#925
From: Alan Shiers
Date: Fri, 05 Jul 2002 16:20
54 lines
3174 bytes
Hi Owen,

Owen Green wrote:
 
> Just to let you know that I am on it, but I'm juggling things a bit here, so
> it'll be as and when :)
> 
> From a first glance the problem /may/ be on the client side, but it's not so
> easy to see what's going on; the various responsibilities of the classes
> don't seem to be too strictly bounded, which makes things harder to follow -
> I'll crack it though ;)
> 
> Just a thouht, but is allowing the thread that's actually uploading to be
> suspended a good idea when its performing what amounts to socket IO?

You may have a point, however, at first I didn't see any reason not to.
I've coded
it so that the thread gets suspended only after it has done its job.  I
didn't see
any harm in that. 
 
> It strikes me that if you're going to allow pausing (why do you need it?),

As mentioned earlier, the way the scenario goes on the client side is: 

1)in uploadFile() create a File object
2)get the files size and transmit that value to the server app
3)the server app determines if there is enough space in the users home
directory
  to accomodate the file.
4)I need a mechanism on the client side to wait for the reply from the
server
  as to whether to proceed or not, thus the request_workerThread. It
will wait
  five second intervals, up to 30 seconds total for a reply. After 30
seconds, if there
  is no reply from the server, request_workerThread suspends itself
again
  until it is called.

  Otherwise, it gets the signal to "proceed" and performs the upload.
5)Upon completion of the upload, it suspends itself again.


> there should be a way of signalling this to the server, perhaps in the same
> way that FTP uses control messages (on a different socket).

I'm open to any suggestions as to how to do this in a better, more
efficient manner.
If you know of a better way I'd love to work with you on it.

Regards,

Alan
Technical Details
Message-ID: <3D25C73F.4D8D94E0@hfx.eastlink.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca> <3d24db4d_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,28eab50e784856ac
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-05 08:33:38 PST
Message-ID: <3D25C73F.4D8D94E0@hfx.eastlink.ca>
Date: Fri, 05 Jul 2002 12:20:15 -0400
From: Alan Shiers <ashiers@hfx.eastlink.ca>
Organization: Mustard Seed Software
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: OutOfMemoryError
References: <3D20CC5D.B70473C9@hfx.eastlink.ca> <MPG.178acb912dba8f7998b79d@newsgroups.borland.com> <3D21C1CA.F2D953E2@hfx.eastlink.ca> <3d21bb44_1@dnews> <3D21EC78.228A5CD3@hfx.eastlink.ca> <3d21e07b_2@dnews> <3D226288.1C7C905@hfx.eastlink.ca> <3d22ec28_1@dnews> <3D233ADD.C365148D@hfx.eastlink.ca> <3d245dff_2@dnews> <3D24D4AC.1B1BFBBC@hfx.eastlink.ca> <3d24db4d_2@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.222.101.2
X-Trace: dnews 1025882258 24.222.101.2 (5 Jul 2002 08:17:38 -0700)
Lines: 54
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews