Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container registry
Model registry
Operate
Environments
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
pikelang
pike
Commits
9bd2fba0
Commit
9bd2fba0
authored
25 years ago
by
Martin Stjernholm
Browse files
Options
Downloads
Patches
Plain Diff
Ugly short-term kludge for SSL-stops-after-16k-sent-bug on NT.
Rev: lib/modules/SSL.pmod/sslfile.pike:1.16
parent
9878997e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/SSL.pmod/sslfile.pike
+6
-20
6 additions, 20 deletions
lib/modules/SSL.pmod/sslfile.pike
with
6 additions
and
20 deletions
lib/modules/SSL.pmod/sslfile.pike
+
6
−
20
View file @
9bd2fba0
/* $Id: sslfile.pike,v 1.1
5
1999/0
5
/0
6 01:01
:5
9
mast Exp $
/* $Id: sslfile.pike,v 1.1
6
1999/0
8
/0
4 21:17
:5
4
mast Exp $
*
*/
...
...
@@ -37,13 +37,6 @@ void die(int status)
#endif
}
is_closed = 1;
#ifdef SSL3_CLOSE_BUG_STILL_EXISTS
#ifndef CALLBACK_BUG_FIXED
// The write callback sometimes gets called although the socket is closed.
socket::set_write_callback(0);
socket::set_read_callback(0);
#endif /* CALLBACK_BUG_FIXED */
#endif
socket::close();
}
...
...
@@ -76,18 +69,11 @@ private int queue_write()
void close()
{
#ifdef SSL3_CLOSE_BUG_STILL_EXISTS
if (is_closed)
throw( ({ "SSL.sslfile->close: Already closed!\n", backtrace() }) );
#endif
#ifdef SSL3_DEBUG
werror("SSL.sslfile->close\n");
#endif
#ifndef SSL3_CLOSE_BUG_STILL_EXISTS
if (is_closed) return;
#endif
is_closed = 1;
send_close();
...
...
@@ -103,9 +89,7 @@ int write(string s)
werror("SSL.sslfile->write\n");
#endif
#ifndef SSL3_CLOSE_BUG_STILL_EXISTS
if (is_closed) return -1;
#endif
int len = strlen(s);
object packet;
...
...
@@ -197,6 +181,10 @@ private void ssl_write_callback(mixed id)
write_buffer = write_buffer[written ..];
} else {
if (written < 0)
#ifdef __NT__
// You don't want to know.. (Bug observed in Pike 0.6.132.)
if (socket::errno() != 1)
#endif
die(-1);
}
}
...
...
@@ -280,9 +268,7 @@ void set_nonblocking(function ...args)
werror(sprintf("SSL.sslfile->set_nonblocking(%O)\n", args));
#endif
#ifndef SSL3_CLOSE_BUG_STILL_EXISTS
if (is_closed) return;
#endif
switch (sizeof(args))
{
...
...
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