rnwood / smtp4dev

smtp4dev - the fake smtp email server for development and testing
BSD 3-Clause "New" or "Revised" License
3.07k stars 344 forks source link

Occasionally connections are answered with no greeting #129

Closed groner closed 5 years ago

groner commented 5 years ago

I've noticed a couple times today that a connection will open and get stuck. My web application worker eventually times out and disconnects after 60s.

I ran wireshark to see where things are getting hung up, here's what I found:

Screen Shot 2019-05-07 at 6 52 31 PM

This screenshot shows two connections, identified as 4 and 5 in the stream index column. The time column contains seconds since the capture started.

I am using the linux docker image, with logs reporting "smtp4dev version 3.1.0-ci0552". The host is lightly loaded, and all traffic is local.

rnwood commented 5 years ago

Thanks for the detailed info.

------ Original Message ------ From: "Kai Groner" notifications@github.com To: "rnwood/smtp4dev" smtp4dev@noreply.github.com Cc: "Subscribed" subscribed@noreply.github.com Sent: 08/05/2019 00:28:16 Subject: [rnwood/smtp4dev] Occasionally connections are answered with no greeting (#129)

I've noticed a couple times today that a connection will open and get stuck. My web application worker eventually times out and disconnects after 60s.

I ran wireshark to see where things are getting hung up, here's what I found: Screen Shot 2019-05-07 at 6 52 31 PM https://user-images.githubusercontent.com/47317/57337959-86aa8300-70f9-11e9-937c-484f9037df55.png

This screenshot shows two connections, identified as 4 and 5 in the stream index column. The time column contains seconds since the capture started.

at 946 stream 4 beginsat 1006 stream 4 is shutdown by the client in one direction only, no traffic has appearedat 1214 stream 5 beginsat 1214 stream 4 smtp greeting appears, followed by a reset packet I am using the linux docker image, with logs reporting "smtp4dev version 3.1.0-ci0552". The host is lightly loaded, and all traffic is local.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rnwood/smtp4dev/issues/129, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKEGF5VMPKPZ6B3ZYUOHOTPUIGBBANCNFSM4HLNGSCQ.

rnwood commented 5 years ago

This should now be resolved. I was able to reproduce finally and consistently during work on #121.