Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Nowin app hangs using certificate for https after the first successful connection #55

Open
dorvan opened this issue Dec 8, 2015 · 3 comments

Comments

@dorvan
Copy link

dorvan commented Dec 8, 2015

In a nowin app, with or without nancyfx (we use nancy for development, with and without razor)
using the certificate for https, the app hangs at first or max second successfull connection, because cannot close connections to the certificate handshake, tcp ports on server side remain in "close wait" state, any new connection add another connection in this state without showing anyting,
in our case this reproducible always in a linux 64 bit machine with mono 3.x > 4.3.x (git)
with sources compiled in mono (framework 4.0) or in windows (4.2, 4.2.x) and running the compiled software in mono or official .net framwerk of both platforms, in debug mode in visual studio, the problem it's less frequently.

Looking other Bugs, seems quite similar to the "F5" bug (#52).
#52

sees a memory problem, or a certificate stream problem on the passthrough after the certicate loading and become a deadlock on tcp port communication after initial connection.
service LIsten correctly but handshake remain locked on the server side.

@Bobris
Copy link
Owner

Bobris commented Dec 8, 2015

I expect you are talking about latest version 0.22.0. So does it happen only in Mono or also in .Net FW on Windows?

@dorvan
Copy link
Author

dorvan commented Dec 29, 2015

yes the latest, at moment we are back to owin due this problem, on linux with mono, the problem seems related to url binding and process initialization, the use of system.net it this way plus system.thread.tasks cause instability.

here a fixed project using owin and a different initialization looking also on library bugs (owin, nancy, mono) https://github.com/Anthilla/Antd

this works great without any past problem we had with owin/nancy/mono, but nowin, show the same problem.

@dorvan
Copy link
Author

dorvan commented Jan 5, 2016

NO. It's not related, because we have tested all conbinations.
it's related on System.threading.tasks and System.Net calls. on Nowin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants