Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    Glad you figured it out.
    The print out shows that all IPs were black listed. Is that what is expected? Why aren't there any IPs that are not blacklisted?

    A good test case would have some IPs...
  2. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    You need to see the contents of the variables and lists to see where the problems are. For example what is in peerconnection?

    What was wrong with the printout I posted?
    Why do you think it is...
  3. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    The code needs some more println statements for debugging. Print out the values of variables and lists so you can see what is happening.
    Add a toString method to the PeerConnection class so that...
  4. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    The program has a bad loop. Wen I compile and execute the code, the CPU usage goes up to over 60%???
    My output before I did an "end task":



    There is a forever/hot loop in the server:

    ...
  5. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    Yes, that sounds about right. There needs to be a good test environment that will consistently show the problem when executed.
    Given that, it should be possible to track down the problem. ...
  6. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    Thanks for the code samples.

    Do those programs when executed show the problem?
    Do you have some print out from when those programs are executed that shows the problem?
    Please post the print...
  7. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    ok, whenever you can do it. I'm in no hurry.

    For testing there should be a reliable model that shows the problem when executed. When the input data can change randomly, it makes it hard to...
  8. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    Write one that uses 127.0.0.1 with different ports. Have a local server that runs those sockets for testing.
  9. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    What I am looking for in a short list of IP addresses to test with. Something that shows the problem and does not need to be changed while testing.
  10. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    That looks like too long a list of IP addresses for testing
    Is that the minimum list required for testing and finding the problem?
    The shorter the better for testing.
  11. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    No, don't post a bunch of classes. Make a special class for doing testing with.
  12. Replies
    25
    Views
    1,568

    Re: Threads and Sockets

    How can anyone test the code? I do not see a main method.
Results 1 to 12 of 12