Nowin icon indicating copy to clipboard operation
Nowin copied to clipboard

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

Open dorvan opened this issue 9 years ago • 3 comments

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). https://github.com/Bobris/Nowin/issues/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.

dorvan avatar Dec 08 '15 10:12 dorvan

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?

Bobris avatar Dec 08 '15 10:12 Bobris

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 avatar Dec 29 '15 20:12 dorvan

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

dorvan avatar Jan 05 '16 13:01 dorvan