You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Aristide Moretti <ar...@yahoo.it> on 2006/02/15 10:56:20 UTC
TCP/IP problem
Hi, i have a simple java server socket
a part of code is :
DataInputStream is = new DataInputStream(socket.getInputStream());
DataOutputStream os = new DataOutputStream(socket.getOutputStream());
while (true) {
String userInput = is.readLine();
if (userInput == null || userInput.equals("QUIT"))
break;
os.writeBytes(userInput + '\n');
System.out.println("The client write: " + userInput);
}
I want to testing this server with JMeter.
I create a Thread Group with TCP Sample Config, i create TCP Sampler.
I try to sending a string text "hello" with the TCP sampler to my server but the server don't write to output.
Can help me?
Thanks in advance.
---------------------------------
Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
Re: TCP/IP problem
Posted by sebb <se...@gmail.com>.
You need to make sure that the TCP sampler End of line characters are
set appropriately.
S.
On 15/02/06, Aristide Moretti <ar...@yahoo.it> wrote:
> Hi, i have a simple java server socket
> a part of code is :
>
> DataInputStream is = new DataInputStream(socket.getInputStream());
> DataOutputStream os = new DataOutputStream(socket.getOutputStream());
> while (true) {
> String userInput = is.readLine();
> if (userInput == null || userInput.equals("QUIT"))
> break;
> os.writeBytes(userInput + '\n');
> System.out.println("The client write: " + userInput);
> }
>
> I want to testing this server with JMeter.
> I create a Thread Group with TCP Sample Config, i create TCP Sampler.
> I try to sending a string text "hello" with the TCP sampler to my server but the server don't write to output.
> Can help me?
> Thanks in advance.
>
>
> ---------------------------------
> Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org