--
You received this message because you are subscribed to the Google Groups "utterlyidle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utterlyidle...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I found a bug when I tried to do this with UtterlyIdle: https://code.google.com/archive/p/utterlyidle/issues/15
Nginx would definitely be the better choice.
Luckily this was only a scratch project. What are the issues with it?
Duplicate requests under load, resource leaks
Are those problems that came with Java 8?
Only ask cause I remember us having a good experience with it at Sky.
Speaking of duplicate requests, we were using dispatch which was using Apache async-http-client via netty (so many layers). Found out its default behaviour is to retry a request if the connection gets closed - including POSTs. That seemed insane to me, but maybe I've got lost along the way.
java.net.MalformedURLException: no protocol: //http://www.blah.co.uk:80/as/dsa/dsa/das/
I also tried adding/removing port and protocol and scheme to no avail. Please feel free to put my out of my misery :-)
public class PortalResources {
private final HttpClient httpClient;
public PortalResources(HttpClient httpClient) {
this.httpClient = httpClient;
}
@ANY
@Path("othersite")
public Response proxy(Request request, @PathParam("$") String path) throws Exception {
final Request modifiedRequest = modify(request).uri(request.uri().path(path).authority("http://www.othersite.co.uk")).build();
System.out.println("path was " + path + " modifiedRequest was " + modifiedRequest);
return httpClient.handle(modifiedRequest);
}
}
You received this message because you are subscribed to a topic in the Google Groups "utterlyidle" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/utterlyidle/DWsfSy9-GJg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to utterlyidle...@googlegroups.com.
Authority can't contain http
final Request modifiedRequest = modify(request)
.uri(uri(new URL("http://www.othersite.co.uk")).mergePath(path))
.build();