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
14dfb57b
Commit
14dfb57b
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Only turn keep-alives on of there already were on.
parent
4e555d03
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/websrvr.c
+3
-2
3 additions, 2 deletions
src/sbbs3/websrvr.c
with
3 additions
and
2 deletions
src/sbbs3/websrvr.c
+
3
−
2
View file @
14dfb57b
...
...
@@ -2064,6 +2064,7 @@ static BOOL exec_cgi(http_session_t *session)
char
*
p
;
char
ch
;
list_node_t
*
node
;
BOOL
orig_keep
=
FALSE
;
#endif
SAFECOPY
(
cmdline
,
session
->
req
.
physical_path
);
...
...
@@ -2072,7 +2073,7 @@ static BOOL exec_cgi(http_session_t *session)
lprintf
(
LOG_INFO
,
"%04d Executing %s"
,
session
->
socket
,
cmdline
);
/* ToDo: Should only do this if the Content-Length header was NOT sent */
orig_keep
=
session
->
req
.
keep_alive
;
session
->
req
.
keep_alive
=
FALSE
;
/* Set up I/O pipes */
...
...
@@ -2201,7 +2202,7 @@ static BOOL exec_cgi(http_session_t *session)
SAFECOPY
(
cgi_status
,
value
);
break
;
case
HEAD_LENGTH
:
session
->
req
.
keep_alive
=
TRUE
;
session
->
req
.
keep_alive
=
orig_keep
;
listPushNodeString
(
&
session
->
req
.
dynamic_heads
,
buf
);
break
;
case
HEAD_TYPE
:
...
...
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