Open Bugs | New Bug anonymous
Login/Register

Equi4 SoftwareEdit Bug

Title: httpd: number too large to represent as a Posix time Status: closed
Product: SDX Severity: major
Version: 2005/01/18 00:34:23 22276-41451 Type: bug
Assign to:
Platform:
RHL 9.0 + Fedoralegacy updates
Message:

File:
Description:

Messages

2005/02/22 jbd
I tried 'tclkit sdx.kit httpd' and got:
Accepting connections on http://second.sonianet:8080/
20050222 14:51:54 (1109098314959773) sock6 Connect 127.0.0.1 34663
20050222 14:51:54 (39013) sock6 Query GET / HTTP/1.1
bgerror: number too large to represent as a Posix time
while executing
"return -options $opts $retval"
(procedure "ConvertUTCToLocal" line 20)
invoked from within
"ConvertUTCToLocal $date[set date {}] $timezone"
(procedure "::tcl::clock::format" line 10)
invoked from within
"clock format $clicks -format {%a, %d %b %Y %T %Z}"
(procedure "HttpdDate" line 2)
invoked from within
"HttpdDate [clock clicks]"
(procedure "HttpdRespond" line 15)
invoked from within
"HttpdRespond $sock "
(procedure "HttpdRead" line 22)
invoked from within
"HttpdRead sock6"
Note that I get the same response even if I tell the browser to use HTTP/1.0
2005/02/22 jbd
The following lines should have [clock seconds... instead of [clock clicks...
175 puts $sock "Date: [HttpdDate [clock seconds]]"
229 puts $sock "Date: [HttpdDate [clock seconds]]"
Interestingly enough, lines 253 & 254 look good:
set httpClicks [clock clicks]
set ts [clock format [clock seconds] -format {%Y%m%d %T}]
--Bruce
2005/03/01 jcw
Thanks for catching this bug. No idea how that mistake came about! Changes
now in CVS and sdx.kit updated.

Bug Tracker © 2002 McMillan Enterprises, Inc.