Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyse broken pipe in response sending #3

Open
sfuhrm opened this issue Jul 9, 2018 · 0 comments
Open

Analyse broken pipe in response sending #3

sfuhrm opened this issue Jul 9, 2018 · 0 comments

Comments

@sfuhrm
Copy link
Owner

sfuhrm commented Jul 9, 2018

Fix non-critical broken pipe in TCP stream which shows with

curl -d DEBUG -X GET  http://localhost:54321/log4j2//level

Might be that this is linked to the extra HTTP body (-d DEBUG) sent.

NanoHTTPD$Response send
SCHWERWIEGEND: Could not send response to the client
java.net.SocketException: Datenübergabe unterbrochen (broken pipe) (Write failed)
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
	at fi.iki.elonen.NanoHTTPD$Response.sendBody(NanoHTTPD.java:1480)
	at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectEncoding(NanoHTTPD.java:1453)
	at fi.iki.elonen.NanoHTTPD$Response.sendBodyWithCorrectTransferAndEncoding(NanoHTTPD.java:1443)
	at fi.iki.elonen.NanoHTTPD$Response.send(NanoHTTPD.java:1429)
	at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:871)
	at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:189)
	at java.lang.Thread.run(Thread.java:748)

It's a little annoying that the error is displayed, but it's not a functional deficit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant