Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

Closing ServletInputStream

Thread view: 
adblock - 30 Jan 2008 19:39 GMT
Hi,

Is it necessary to close the InputStream, which was getted by call of
method ServletRequest.getInputStream() ?
Crouchez - 31 Jan 2008 01:17 GMT
> Hi,
>
> Is it necessary to close the InputStream, which was getted by call of
> method ServletRequest.getInputStream() ?

no, the server should deal with it
Crouchez - 31 Jan 2008 01:31 GMT
> > Hi,
> >
> > Is it necessary to close the InputStream, which was getted by call of
> > method ServletRequest.getInputStream() ?
>
> no, the server should deal with it

hang on a minute that's too concise lol. usually on here you need to write
about 4 paragraphs
Lew - 31 Jan 2008 02:26 GMT
"adblock" <A.Grasoff@gmail.com> wrote
>>> Is it necessary to close the InputStream, which was getted by call of
>>> method ServletRequest.getInputStream() ?

> no, the server should deal with it
>
> hang on a minute that's too concise lol.

But absolutely correct.

Signature

Lew
An ingenue approached the infamously laconic Calvin Coolidge and gushed,
"Oh, Mr. President, I bet my friend I could get you to speak more than two words!"
He replied, "You lose."

adblock - 31 Jan 2008 06:25 GMT
> no, the server should deal with it

ok.. but.. why? :)

> > Hi,
>
> > Is it necessary to close the InputStream, which was getted by call of
> > method ServletRequest.getInputStream() ?
>
> no, the server should deal with it
EJP - 31 Jan 2008 07:27 GMT
>> no, the server should deal with it
>
> ok.. but.. why? :)

Because, err, that's what it's supposed to do. It has to close the
socket some time ...
Crouchez - 31 Jan 2008 15:03 GMT
> no, the server should deal with it

ok.. but.. why? :)

On 31 ÑÎ×, 04:17, "Crouchez" <safdfagf...@asdfagfsdfs.com> wrote:
> "adblock" <A.Gras...@gmail.com> wrote in message
>
[quoted text clipped - 6 lines]
>
> no, the server should deal with it

because the server deals with the sockets and keep-alive connections etc.
Lew - 31 Jan 2008 15:55 GMT
"adblock" <A.Grasoff@gmail.com> wrote...
>> no, the server should deal with it
>
[quoted text clipped - 9 lines]
>>> method ServletRequest.getInputStream() ?
>> no, the server should deal with it

adblock, your quoting style is hard to follow.  Just trim the post to which
you are replying and insert your comments - no need to requote the quoted part
again.

> because the server deals with the sockets and keep-alive connections etc.

and so that the programmer doesn't have to.  To flip your question about,
adblock, why would you NOT let the server close it for you?

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.