[
https://issues.apache.org/jira/browse/DIRMINA-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577137#action_12577137
]
Justin SB commented on DIRMINA-514:
-----------------------------------
Well that was easy - thanks Matteo for a good test case. Again, Mac OS 10.5.2;
Java 5.
Has anyone tried this with Java 5 on Linux / Windows? Maybe the Mac OS isn't
the factor here?
java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
sudo tcpdump -i lo0 port 9090
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo0, link-type NULL (BSD loopback), capture size 96 bytes
12:30:59.691950 IP localhost.53249 > localhost.websm: S
2108918664:2108918664(0) win 65535 <mss 16344,nop,wscale 3,nop,nop,timestamp
148704767 0,sackOK,eol>
12:30:59.692004 IP localhost.websm > localhost.53249: S 879703052:879703052(0)
ack 2108918665 win 65535 <mss 16344,nop,wscale 3,nop,nop,timestamp 148704767
148704767,sackOK,eol>
12:30:59.692017 IP localhost.53249 > localhost.websm: . ack 1 win 65535
<nop,nop,timestamp 148704767 148704767>
12:30:59.692033 IP localhost.websm > localhost.53249: . ack 1 win 65535
<nop,nop,timestamp 148704767 148704767>
12:31:00.774681 IP localhost.53249 > localhost.websm: P 1:3(2) ack 1 win 65535
<nop,nop,timestamp 148704778 148704767>
12:31:00.774726 IP localhost.websm > localhost.53249: . ack 3 win 65534
<nop,nop,timestamp 148704778 148704778>
12:31:00.775150 IP localhost.websm > localhost.53249: P 1:3(2) ack 3 win 65534
<nop,nop,timestamp 148704778 148704778>
12:31:00.775199 IP localhost.53249 > localhost.websm: . ack 3 win 65535
<nop,nop,timestamp 148704778 148704778>
Then nothing. If I disconnect from the client, I then get this:
12:31:09.078705 IP localhost.53249 > localhost.websm: F 3:3(0) ack 3 win 65535
<nop,nop,timestamp 148704861 148704778>
12:31:09.078741 IP localhost.websm > localhost.53249: . ack 4 win 65534
<nop,nop,timestamp 148704861 148704861>
> Session closing problem on Mac OS X
> -----------------------------------
>
> Key: DIRMINA-514
> URL: https://issues.apache.org/jira/browse/DIRMINA-514
> Project: MINA
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-M1
> Environment: Mac OS X 10.4 with Java 1.5.0_07 -87
> Reporter: Matteo Merli
> Fix For: 2.0.0-M2
>
> Attachments: Echo1_1.java, Echo2_0.java
>
>
> A call to session.close() does not send a FIN packet althought MINA will
> considers the session as closed.
> I've attached two test cases, one that works with MINA 1.1 (and works fine)
> and other with MINA 2.0 that doesn't close connections.
> This is a simple echo server that receives a message, writes it back to the
> client and (should) close the connection.
> This problem is *NOT* ocurring on Linux where the same test case works fine.
> It only shows up on Mac OS X.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.