Browse Source

Remove build-depend on ragel (wasn't using ragel at all, thx Tamas TEVESZ)

tags/fcgi-debug-0.9.3
Stefan Bühler 10 years ago
parent
commit
168c8a78bd
4 changed files with 5 additions and 9 deletions
  1. +1
    -1
      COPYING
  2. +0
    -1
      README
  3. +0
    -3
      src/CMakeLists.txt
  4. +4
    -4
      src/parse-fastcgi.c

+ 1
- 1
COPYING View File

@@ -1,7 +1,7 @@

The MIT License

Copyright (c) 2008 Stefan Bühler
Copyright (c) 2008-2010 Stefan Bühler

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal


+ 0
- 1
README View File

@@ -6,7 +6,6 @@ Build Requires:
glib2
libev
cmake
ragel

For running you probably want spawn-fcgi (either from lighttpd, or from https://cgit.stbuehler.de/gitosis/spawn-fcgi/about/)



+ 0
- 3
src/CMakeLists.txt View File

@@ -9,7 +9,6 @@ INCLUDE(CPack)
INCLUDE(FindPkgConfig)

INCLUDE(LighttpdMacros)
FIND_PACKAGE(Ragel REQUIRED)
cmake_policy(SET CMP0005 OLD)

OPTION(BUILD_STATIC "build a static fcgi-debug")
@@ -61,8 +60,6 @@ ADD_DEFINITIONS(-DHAVE_CONFIG_H)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})

RAGEL_PARSER(parse-fastcgi.rl)

ADD_EXECUTABLE(fcgi-debug
fcgi-debug.c
connection.c


src/parse-fastcgi.rl → src/parse-fastcgi.c View File

@@ -169,7 +169,7 @@ static void fcgi_packet_parse(fcgi_context *ctx, guint8 *p, guint8 *pe) {
}
log_raw_split("data", ctx->from_server, ctx->con_id, ctx->FCGI_Record.requestID, g_string_set_const(&tmp1, (gchar*) p, pe - p));
break;
case FCGI_GET_VALUES: {
guint len1, len2;
GString *s1, *s2;
@@ -203,7 +203,7 @@ static void fcgi_packet_parse(fcgi_context *ctx, guint8 *p, guint8 *pe) {
}
break;
}
case FCGI_GET_VALUES_RESULT: {
guint len1, len2;
GString *s1, *s2;
@@ -231,7 +231,7 @@ static void fcgi_packet_parse(fcgi_context *ctx, guint8 *p, guint8 *pe) {
}
break;
}
case FCGI_UNKNOWN_TYPE:
if (ctx->FCGI_Record.contentLength != 8) {
g_print("wrong FCGI_UNKNOWN_TYPE size from %s (%u, %u): %u\n",
@@ -241,7 +241,7 @@ static void fcgi_packet_parse(fcgi_context *ctx, guint8 *p, guint8 *pe) {
g_print("unknown type %u from %s (%u, %u)\n", (guint) p[0],
from_server_to_string(ctx->from_server), ctx->con_id, (guint) ctx->FCGI_Record.requestID);
break;
default:
g_print("packet from %s (%u, %u): type: %s, contentLength: 0x%x\n",
from_server_to_string(ctx->from_server), ctx->con_id,

Loading…
Cancel
Save