Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Minimalistic SPDY proxy setup using Jetty 9.0.0

Hi Thomas, yes, it's not how you would normally use it as a reverse SPDY proxy. I just noticed the error...
Arjan

On 14 March 2013 12:13, Thomas Becker <tbecker@xxxxxxxxxxx> wrote:
Hi Arjan,

you're using a rare scenario where you talk HTTP to a spdy proxy, which will translate HTTP to SPDY internally and then you translate again from SPDY to HTTP to talk plain HTTP to the upstream server.

There's a small bug in our code which fails to read the response status. I'll write a test case for it and fix this.

However I'm interested in your use case now. Why exactly do you need to talk HTTP to a SPDY proxy and then connect to an HTTP upstream server? Can you provide some details?

I'll keep you updated about the fix.

Cheers,
Thomas

Am 3/14/13 10:43 AM, schrieb Arjan Peddemors:
Hi Simone and Thomas,
I just tried the 1.1.5.v20130313 npn version and it works (incoming
requests at the upstream server, and an active SPDY session in chrome).
Thanks for solving this.

One thing I noticed: when using the HTTPSPDYProxyServerConnector with
plain HTTP (as configured on port 8080), I get the following error.

2013-03-14 10:35:15.430:INFO:oejssp.HTTPSPDYProxyServerConnector:main:
Started HTTPSPDYProxyServerConnector@8caaae{HTTP/1.1}{0.0.0.0:8080
<http://0.0.0.0:8080>}

2013-03-14 10:35:15.644:INFO:oejssp.HTTPSPDYProxyServerConnector:main:
Started H
TTPSPDYProxyServerConnector@15d6bd6{SSL-npn}{0.0.0.0:8443
<http://0.0.0.0:8443>}

2013-03-14
10:35:39.120:INFO:oejc.ResponseNotifier:HttpClient@20867435-12:
Exception while notifying listener
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2@2790e
java.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Matcher.java:485)
at
org.eclipse.jetty.spdy.server.proxy.ProxyHTTPSPDYConnection$HTTPStream.reply(ProxyHTTPSPDYConnection.java:247)
at
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2.onHeaders(HTTPProxyEngine.java:145)
at
org.eclipse.jetty.client.ResponseNotifier.notifyHeaders(ResponseNotifier.java:107)
at
org.eclipse.jetty.client.ResponseNotifier.notifyHeaders(ResponseNotifier.java:99)
at
org.eclipse.jetty.client.HttpReceiver.headerComplete(HttpReceiver.java:242)
at org.eclipse.jetty.http.HttpParser.parseHeaders(HttpParser.java:793)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1100)
at org.eclipse.jetty.client.HttpReceiver.parse(HttpReceiver.java:108)
at org.eclipse.jetty.client.HttpReceiver.receive(HttpReceiver.java:75)
at org.eclipse.jetty.client.HttpConnection.receive(HttpConnection.java:319)
at
org.eclipse.jetty.client.HttpConnection.onFillable(HttpConnection.java:307)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
at java.lang.Thread.run(Thread.java:722)
2013-03-14
10:35:39.127:INFO:oejc.ResponseNotifier:HttpClient@20867435-12:
Exception while notifying listener
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2@2790e
java.lang.IllegalStateException: generateResponse=NEED_INFO
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:416)
at
org.eclipse.jetty.spdy.server.proxy.ProxyHTTPSPDYConnection$HTTPStream.data(ProxyHTTPSPDYConnection.java:304)
at
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2.onContent(HTTPProxyEngine.java:170)
at
org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:130)
at
org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:122)
at org.eclipse.jetty.client.HttpReceiver.content(HttpReceiver.java:285)
at org.eclipse.jetty.client.HttpReceiver.content(HttpReceiver.java:47)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1157)
at org.eclipse.jetty.client.HttpReceiver.parse(HttpReceiver.java:108)
at org.eclipse.jetty.client.HttpReceiver.receive(HttpReceiver.java:75)
at org.eclipse.jetty.client.HttpConnection.receive(HttpConnection.java:319)
at
org.eclipse.jetty.client.HttpConnection.onFillable(HttpConnection.java:307)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
at java.lang.Thread.run(Thread.java:722)
2013-03-14
10:35:39.128:INFO:oejc.ResponseNotifier:HttpClient@20867435-12:
Exception while notifying listener
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2@2790e
java.lang.IllegalStateException: generateResponse=NEED_INFO
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:416)
at
org.eclipse.jetty.spdy.server.proxy.ProxyHTTPSPDYConnection$HTTPStream.data(ProxyHTTPSPDYConnection.java:304)
at
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2.onContent(HTTPProxyEngine.java:170)
at
org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:130)
at
org.eclipse.jetty.client.ResponseNotifier.notifyContent(ResponseNotifier.java:122)
at org.eclipse.jetty.client.HttpReceiver.content(HttpReceiver.java:285)
at org.eclipse.jetty.client.HttpReceiver.content(HttpReceiver.java:47)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1157)
at org.eclipse.jetty.client.HttpReceiver.parse(HttpReceiver.java:108)
at org.eclipse.jetty.client.HttpReceiver.receive(HttpReceiver.java:75)
at org.eclipse.jetty.client.HttpConnection.receive(HttpConnection.java:319)
at
org.eclipse.jetty.client.HttpConnection.onFillable(HttpConnection.java:307)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
at java.lang.Thread.run(Thread.java:722)
2013-03-14
10:35:39.129:INFO:oejc.ResponseNotifier:HttpClient@20867435-12:
Exception while notifying listener
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2@2790e
java.lang.IllegalStateException: generateResponse=NEED_INFO
at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:416)
at
org.eclipse.jetty.spdy.server.proxy.ProxyHTTPSPDYConnection$HTTPStream.data(ProxyHTTPSPDYConnection.java:304)
at
org.eclipse.jetty.spdy.server.proxy.HTTPProxyEngine$2.onSuccess(HTTPProxyEngine.java:197)
at
org.eclipse.jetty.client.ResponseNotifier.notifySuccess(ResponseNotifier.java:153)
at
org.eclipse.jetty.client.ResponseNotifier.notifySuccess(ResponseNotifier.java:145)
at org.eclipse.jetty.client.HttpReceiver.success(HttpReceiver.java:320)
at
org.eclipse.jetty.client.HttpReceiver.messageComplete(HttpReceiver.java:295)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1163)
at org.eclipse.jetty.client.HttpReceiver.parse(HttpReceiver.java:108)
at org.eclipse.jetty.client.HttpReceiver.receive(HttpReceiver.java:75)
at org.eclipse.jetty.client.HttpConnection.receive(HttpConnection.java:319)
at
org.eclipse.jetty.client.HttpConnection.onFillable(HttpConnection.java:307)
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:589)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:520)
at java.lang.Thread.run(Thread.java:722)

Any thoughts on this?

best,
Arjan

On 13 March 2013 19:33, Simone Bordet <sbordet@xxxxxxxxxxx
<mailto:sbordet@xxxxxxxxxxx>> wrote:

    Hi,

    On Wed, Mar 13, 2013 at 9:46 AM, Thomas Becker <tbecker@xxxxxxxxxxx
    <mailto:tbecker@xxxxxxxxxxx>> wrote:
     > Hi Arjan,
     >
     > the versions you're using are perfectly fine. Please keep using
    the latest
     > npn jar.
     > However it seems like that the latest npn jar is not compatible
    with the
     > OpenJDK version you use.

    We have released the update NPN jars, see
    http://wiki.eclipse.org/Jetty/Feature/NPN#Versions.

    Please use the NPN version that matches your JDK.

    --
    Simone Bordet
    ----
    http://cometd.org
    http://webtide.com
    http://intalio.com
    Developer advice, training, services and support
    from the Jetty & CometD experts.
    Intalio, the modern way to build business applications.
    _______________________________________________
    jetty-users mailing list
    jetty-users@xxxxxxxxxxx <mailto:jetty-users@eclipse.org>
    https://dev.eclipse.org/mailman/listinfo/jetty-users





_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top