master 24.49
John Wiseman 1 year ago
parent 64721650e8
commit 4745452eb0

@ -1232,7 +1232,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
// Fix buffer leak in ARDOP codev(46) // Fix buffer leak in ARDOP codev(46)
// Fix possible crash if MQTT not in use (47) // Fix possible crash if MQTT not in use (47)
// Add optional ATTACH time limit for VARA (48) // Add optional ATTACH time limit for VARA (48)
// API foramt fixes (48) // API format fixes (48)
#define CKernel #define CKernel

@ -2838,6 +2838,12 @@ noFlip3:
RESET2(LINK); // RESET ALL FLAGS RESET2(LINK); // RESET ALL FLAGS
toCall[ConvFromAX25(LINK->LINKCALL, toCall)] = 0;
fromCall[ConvFromAX25(LINK->OURCALL, fromCall)] = 0;
hookL2SessionAttempt(CONNECTPORT, fromCall, toCall, LINK);
if (CMD->String[0] == 'N' && SUPPORT2point2) if (CMD->String[0] == 'N' && SUPPORT2point2)
LINK->L2STATE = 1; // New (2.2) send XID LINK->L2STATE = 1; // New (2.2) send XID
else else

File diff suppressed because it is too large Load Diff

@ -2182,6 +2182,29 @@ doHeader:
if (Context && _memicmp(Context, "/mail/api/", 10) == 0) if (Context && _memicmp(Context, "/mail/api/", 10) == 0)
{ {
if (memcmp(_REPLYBUFFER, "HTTP", 4) == 0)
{
// Full Header provided by appl - just send it
// Send may block
Sent = send(sock, _REPLYBUFFER, ReplyLen, 0);
while (Sent != ReplyLen && Loops++ < 3000) // 100 secs max
{
// Debugprintf("%d out of %d sent %d Loops", Sent, InputLen, Loops);
if (Sent > 0) // something sent
{
InputLen -= Sent;
memmove(_REPLYBUFFER, &_REPLYBUFFER[Sent], ReplyLen);
}
Sleep(30);
Sent = send(sock, _REPLYBUFFER, ReplyLen, 0);
}
return 0;
}
// compress if allowed // compress if allowed

Loading…
Cancel
Save

Powered by TurnKey Linux.