Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
43e9767
update some logging, add comments
robotdan May 13, 2025
55a2aba
working
robotdan May 13, 2025
5a2c059
working
robotdan May 13, 2025
981f84e
working
robotdan May 13, 2025
22dc35c
working
robotdan May 14, 2025
f128fbc
Add logging, and tests
robotdan May 15, 2025
dfdc104
Tests
robotdan May 15, 2025
8c8c3ec
Tests
robotdan May 15, 2025
6836604
Tests
robotdan May 15, 2025
c709bbb
Tests
robotdan May 15, 2025
309e8c3
Working
robotdan May 15, 2025
32746a9
Tests
robotdan May 16, 2025
8356101
Tests
robotdan May 16, 2025
af92fe8
Tests
robotdan May 16, 2025
8ae5cf1
copyright
robotdan May 16, 2025
2f7c476
Working
robotdan May 24, 2025
2376537
Working
robotdan May 24, 2025
b23099d
Working
robotdan May 28, 2025
d425944
Working
robotdan May 28, 2025
78e4c2e
Working
robotdan May 28, 2025
daaa59c
Working
robotdan May 28, 2025
2e0aa12
Working
robotdan May 28, 2025
409b40f
Working
robotdan May 28, 2025
55f14b3
Working
robotdan May 28, 2025
3d322ac
Working
robotdan May 28, 2025
9dc897f
Working
robotdan May 28, 2025
f7148a0
Working
robotdan May 30, 2025
a468f6b
Working
robotdan May 30, 2025
713ccb9
Working
robotdan May 30, 2025
91db717
Tests
robotdan May 30, 2025
e659c0e
Working
robotdan May 30, 2025
a0691f0
Working
robotdan May 30, 2025
797ed9c
Get Tomcat setup
robotdan May 30, 2025
598729b
README
robotdan May 30, 2025
31a8e6f
review edits
robotdan May 30, 2025
993eb99
build updates
robotdan May 30, 2025
cd8c7b7
Working
robotdan Jun 3, 2025
3c45a5c
Working
robotdan Jun 3, 2025
130b48c
Working
robotdan Jun 3, 2025
8a22c0c
Working
robotdan Jun 3, 2025
d69682c
Working
robotdan Jun 4, 2025
251c938
Working
robotdan Jun 4, 2025
d2950be
Working
robotdan Jun 4, 2025
5d312dd
Working
robotdan Jun 4, 2025
a56fce4
Working
robotdan Jun 4, 2025
2ec79ed
Working
robotdan Jun 4, 2025
4f0adc2
Working
robotdan Jun 5, 2025
6a73fa4
Add option to keep additional attributes on cookies
robotdan Jun 5, 2025
cff1c68
Working
robotdan Jun 6, 2025
8519136
Working
robotdan Jun 7, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Working
  • Loading branch information
robotdan committed Jun 4, 2025
commit 5d312dd5a7ca36f8469f9c46e891c873890ccfbb
5 changes: 0 additions & 5 deletions src/main/java/io/fusionauth/http/io/PushbackInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ public int read() throws IOException {
return b1[0] & 0xFF;
}

@Override
public byte[] readAllBytes() throws IOException {
return super.readAllBytes();
}

public void setDelegate(InputStream delegate) {
this.delegate = delegate;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ public HTTPServerConfiguration withMaximumBytesToDrain(int maxBytesToDrain) {
*/
@Override
public HTTPServerConfiguration withMinimumReadThroughput(long bytesPerSecond) {
if (bytesPerSecond != -1 && bytesPerSecond < 1024) {
throw new IllegalArgumentException("The minimum bytes per second must be greater than 1024. This should probably be faster than a 28.8 baud modem!");
if (bytesPerSecond != -1 && bytesPerSecond < 512) {
throw new IllegalArgumentException("The minimum bytes per second must be greater than 512. Note that the theoretical maximum transmission speed of a 28.8k is 28,800 bits /second, or 3,600 bytes /second. Maybe consider requiring the read throughput to be faster than a 28.8k modem.");
}

this.minimumReadThroughput = bytesPerSecond;
Expand All @@ -462,8 +462,8 @@ public HTTPServerConfiguration withMinimumReadThroughput(long bytesPerSecond) {
* {@inheritDoc}
*/
public HTTPServerConfiguration withMinimumWriteThroughput(long bytesPerSecond) {
if (bytesPerSecond != -1 && bytesPerSecond < 1024) {
throw new IllegalArgumentException("The minimum bytes per second must be greater than 1024. This should probably be faster than a 28.8 baud modem!");
if (bytesPerSecond != -1 && bytesPerSecond < 512) {
throw new IllegalArgumentException("The minimum bytes per second must be greater than 512. Note that the theoretical maximum transmission speed of a 28.8k is 28,800 bits /second, or 3,600 bytes /second. Maybe consider requiring the write throughput to be faster than a 28.8k modem.");
}

this.minimumWriteThroughput = bytesPerSecond;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,8 @@ public void run() {
ClientInfo client = iterator.next();
Thread thread = client.thread();
long threadId = thread.threadId();
boolean threadIsAlive = thread.isAlive();
var threadState = thread.getState();
if (threadState == Thread.State.TERMINATED) {
if (threadIsAlive) {
System.out.println("[" + threadId + "] is alive in state [" + threadState + "]");
}
} else if (!threadIsAlive) {
System.out.println("[" + threadId + "] is dead in state [" + threadState + "]");
}

if (!threadIsAlive) {
logger.debug("[{}] Remove dead client worker. Thread state [{}] Born [{}]. Died at age [{}] ms. Requests handled [{}].", threadId, threadState, client.getStartInstant(), client.getAge(), client.getHandledRequests());
if (!thread.isAlive()) {
logger.trace("[{}] Remove dead client worker. Born [{}]. Died at age [{}] ms. Requests handled [{}].", threadId, client.getStartInstant(), client.getAge(), client.getHandledRequests());
iterator.remove();
removedClientCount++;
continue;
Expand Down