-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault after interrupting hung process with /stoppable=true #74
Comments
Can you provide a reproducible case (application and configs), so I can look what is wrong? |
Reflect.cs (it's a bad name, has nothing to do with reflection) using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Newtonsoft.Json;
using HyperFastCgi;
using HyperFastCgi.AppHosts.Raw;
using HyperFastCgi.Interfaces;
namespace Reflect {
public class PeekRequest : BaseRawRequest {
public override void Process(IWebResponse response) {
string json;
if (ServerVariables == null || ServerVariables.Count == 0) {
json = "null";
} else {
json = JsonConvert.SerializeObject(ServerVariables,Formatting.Indented);
}
Status = 200;
StatusDescription = "OK";
ResponseHeaders.Add("Content-Type","application/json");
response.Send(Encoding.UTF8.GetBytes(json));
response.CompleteResponse();
}
}
} And hyper.config: <!-- vim: set ft=xml: -->
<configuration>
<server type="HyperFastCgi.ApplicationServers.SimpleApplicationServer">
<host-factory>HyperFastCgi.HostFactories.SystemWebHostFactory</host-factory>
<threads min-worker="40" max-worker="0" min-io="4" max-io="0"/>
<root-dir>/opt/hyper</root-dir>
</server>
<listener type="HyperFastCgi.Listeners.NativeListener">
<apphost-transport type="HyperFastCgi.Transports.NativeTransport">
<multithreading>ThreadPool</multithreading>
</apphost-transport>
<protocol>Unix</protocol>
<address>/var/tmp/hyper.sock</address>
</listener>
<apphost type="HyperFastCgi.AppHosts.Raw.RawHost">
<log level="All" write-to-console="true" />
<add-trailing-slash>false</add-trailing-slash>
<request-type>Reflect.PeekRequest,Reflect</request-type>
</apphost>
</configuration> Mono: Machine: |
In the course of debugging, I was running HFC with /stoppable=True.
Hitting enter would shutdown the service, but would hang in the terminal.
Hitting ctl-c causes this:
Command line:
mono --debug /usr/local/src/HyperFastCgi/src/HyperFastCgi/4.0/bin/Release/HyperFastCgi.exe /config=/etc/nginx/hyper.config /stoppable=True /printlog=True /loglevels=All
The text was updated successfully, but these errors were encountered: