Mantis - Resin
Viewing Issue Advanced Details
5426 minor always 04-23-13 06:54 05-29-13 07:01
cowan  
ferg  
high  
closed 4.0.35  
fixed  
none    
none 4.0.37  
0005426: HTTP socket-timeout does not work without JNI modules
If the resin JNI modules(libresin.so, libresin_os.so, libresinssl.so) exist in $RESIN_HOME/libexec64 folder. The socket timeout works very well.

But If Resin JNI modules does not exist in the $RESIN_HOME/libexec64 folder,
This socket timeout issue always can be reproducible.

For example,

#>cd resin-pro-4.0.35
#>vi conf/resin.xml
    <http address="*" port="8080">
        <keepalive-timeout>5s</keepalive-timeout>
        <socket-timeout>65s</socket-timeout>
    </http>
#>mv libexec64 libexec64.orig <-- to does not use JNI modules
#>bin/resinctl -server a start
#>telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'

After a socket connection established as above,
If I do not send any data to resin ( as a DOS attack state )
The established socket connection will not be closed after 65 second( even 1 hour ).
Rep by HS Im

Notes
(0006244)
ferg   
05-01-13 10:57   
network/0235
(0006266)
cowan   
05-29-13 06:59   
Fixing fixed version