jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1382576 - /jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
Date Mon, 10 Sep 2012 23:17:41 GMT
On 9 September 2012 21:43,  <pmouawad@apache.org> wrote:
> Author: pmouawad
> Date: Sun Sep  9 20:43:51 2012
> New Revision: 1382576
>
> URL: http://svn.apache.org/viewvc?rev=1382576&view=rev
> Log:
> Use BufferedOutputStream

=>   BufferedInputStream

>
> Modified:
>     jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
>
> Modified: jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
> URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java?rev=1382576&r1=1382575&r2=1382576&view=diff
> ==============================================================================
> --- jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
(original)
> +++ jmeter/trunk/src/protocol/ftp/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
Sun Sep  9 20:43:51 2012
> @@ -18,6 +18,7 @@
>
>  package org.apache.jmeter.protocol.ftp.sampler;
>
> +import java.io.BufferedInputStream;
>  import java.io.ByteArrayInputStream;
>  import java.io.ByteArrayOutputStream;
>  import java.io.File;
> @@ -211,7 +212,7 @@ public class FTPSampler extends Abstract
>                          } else {
>                              File infile = new File(local);
>                              res.setBytes((int)infile.length());
> -                            input = new FileInputStream(infile);
> +                            input = new BufferedInputStream(new FileInputStream(infile));
>                          }
>                          ftpOK = ftp.storeFile(remote, input);
>                      } else {
>
>

Mime
View raw message