Grails-Plugin-Consortium / grails-cxf-client

Easy cxf client for grails
http://grails.org/plugin/cxf-client
27 stars 30 forks source link

Unstable https behaviour on Java 7 while everything is stable on Java 6 #32

Open sovnarkom opened 11 years ago

sovnarkom commented 11 years ago

Environment:

Steps to reproduce:

I connect to https host, and the connection just drops after some time (broken pipe, connection dropped).

The issue reproduces after couple of normal requests (in most cases one). The issue will not reproduce after some hours in live application for the next request, and then starts to reproduce again.

Notes:

After some debugging I was able to find that connection always hangs and drops right after SSL handshake sent.

I'm not sure if it's apache-cxf problem itself but if I use groovy HTTPBuilder and emulate same soap request — everything works without any issues.

I also tried to update cxf version to latest, but without any changes in issue behaviour. I'm really puzzled by that issue already.

Please contact me for more detailed information and test project if needed.

madeupname commented 10 years ago

Any progress on this? I am having what appears to be the same issue. I get a socket read time out or connection reset message when making a call to an https endpoint. With http it's fine, and I just switched to JDK6 and it's also fixed like yours.

I believe this has to do with some sort of SSL cache. My behavior is mostly the same as yours:

I am using the latest plugin, and tried adding TLS config block, but I am getting complaints from the compiler:

Groovy:expecting ']', found 'cipherSuitesFilter' 

if I add a comma after the secureSocketProtocol line, I get:

Groovy:Unexpected node type: EXPR found when expecting type: LABELED_ARG

I was going to try to set sslCacheTimeout to zero to see if that would fix it. But I'm also wondering if that could cause other problems. It seems that when trying to repopulate the cache when using JDK7, there's an error, but I'm not seeing anything helpful in the debug output.

Thanks in advance for any help!

ctoestreich commented 10 years ago

I have been a bit bogged down on a new contract lately and I haven't had much time to dig into my Open Source projects. I would encourage pulling down the code and seeing if you can fix the issue and submit a pull req. :+1:

Otherwise it may be a while until I can check out the issue.

madeupname commented 10 years ago

I understand, and appreciate your effort, but to be honest I don't think I'm qualified to mess with your code. It's a bit beyond my skill level. I'll stick with Java 6 for now.