The “java.net.SocketException: Unexpected end of file from server” exception is thrown in the HTTPClient class, as well as others. This article simply provides an example of how to generate it for testing purposes. We start with a client class that…
Category: Wireshark
Simulating a connection reset in java
We start with a class that simply creates a server and a client. The server class is configured to accept a connection and then exit, forcing of course, all connections to terminate. The client class connects, then sleeps two seconds…
Getting window size from raw packet capture
tcpdump shows the unscaled window size. It is important to note that the value of wscale is not the value by which to multiply, it is the bits that are set on the scaling factor, as it uses binary math.…
wireshark, python, and Excel for graphing TCP window sizes
Filter the packets in which you are interested. In this case, we filter on the source IP… …then export the packets to a CSV file… …which we then parse in python to produce another CSV file… f = open(“good.csv”,”w”) for…