Closing ServletInputStream

A

adblock

Hi,

Is it necessary to close the InputStream, which was getted by call of
method ServletRequest.getInputStream() ?
 
C

Crouchez

adblock said:
Hi,

Is it necessary to close the InputStream, which was getted by call of
method ServletRequest.getInputStream() ?

no, the server should deal with it
 
L

Lew

adblock said:
ok.. but.. why? :)

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top