Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
065de282
Commit
065de282
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created WEB_OPT_DEBUG_RX for enabling debug of received requests.
parent
9ec5bd9e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/sbbs_ini.c
+1
-0
1 addition, 0 deletions
src/sbbs3/sbbs_ini.c
src/sbbs3/websrvr.c
+2
-1
2 additions, 1 deletion
src/sbbs3/websrvr.c
src/sbbs3/websrvr.h
+3
-2
3 additions, 2 deletions
src/sbbs3/websrvr.h
with
6 additions
and
3 deletions
src/sbbs3/sbbs_ini.c
+
1
−
0
View file @
065de282
...
@@ -46,6 +46,7 @@ static ini_bitdesc_t ftp_options[] = {
...
@@ -46,6 +46,7 @@ static ini_bitdesc_t ftp_options[] = {
static
ini_bitdesc_t
web_options
[]
=
{
static
ini_bitdesc_t
web_options
[]
=
{
{
WEB_OPT_DEBUG_RX
,
"DEBUG_RX"
},
{
WEB_OPT_DEBUG_TX
,
"DEBUG_TX"
},
{
WEB_OPT_DEBUG_TX
,
"DEBUG_TX"
},
{
WEB_OPT_VIRTUAL_HOSTS
,
"VIRTUAL_HOSTS"
},
{
WEB_OPT_VIRTUAL_HOSTS
,
"VIRTUAL_HOSTS"
},
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/websrvr.c
+
2
−
1
View file @
065de282
...
@@ -754,6 +754,7 @@ static int sockreadline(http_session_t * session, time_t timeout, char *buf, siz
...
@@ -754,6 +754,7 @@ static int sockreadline(http_session_t * session, time_t timeout, char *buf, siz
else
else
buf
[
i
]
=
0
;
buf
[
i
]
=
0
;
if
(
startup
->
options
&
WEB_OPT_DEBUG_RX
)
lprintf
(
"%04d RX: %s"
,
session
->
socket
,
buf
);
lprintf
(
"%04d RX: %s"
,
session
->
socket
,
buf
);
return
(
0
);
return
(
0
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/websrvr.h
+
3
−
2
View file @
065de282
...
@@ -89,8 +89,9 @@ typedef struct {
...
@@ -89,8 +89,9 @@ typedef struct {
BOOL
recycle_now
;
BOOL
recycle_now
;
}
web_startup_t
;
}
web_startup_t
;
#define WEB_OPT_DEBUG_TX (1<<0)
/* Log all transmitted responses */
#define WEB_OPT_DEBUG_RX (1<<0)
/* Log all received requests */
#define WEB_OPT_VIRTUAL_HOSTS (1<<1)
/* Use virutal host html subdirs */
#define WEB_OPT_DEBUG_TX (1<<1)
/* Log all transmitted responses */
#define WEB_OPT_VIRTUAL_HOSTS (1<<4)
/* Use virutal host html subdirs */
#ifdef DLLEXPORT
#ifdef DLLEXPORT
#undef DLLEXPORT
#undef DLLEXPORT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment