file_touch("test.txt");
log("original mod_time: " + file_date("test.txt"));
log("changing file mod_time to 1267455497"); file_utime("test.txt",1267455497,1267455497);
log("new file mod_time: " + file_date("test.txt"));
file_remove("test.txt");
OUTPUT:
3/11 01:10:51p Node 1 original mod_time: 1268331052
3/11 01:10:51p Node 1 changing file mod_time to 1267455497
3/11 01:10:51p Node 1 new file mod_time: 1267455498
It's driving me insane.. doesn't make sense
----------------------------------------------------
var sock=new Socket();
sock.bind(10088);
sock.connect("localhost",25);
log(time());
log("connected: " + sock.is_connected);
log("nonblocking: " + sock.nonblocking);
OUTPUT:
3/11 01:19:09p Node 2 1268331549
3/11 01:19:09p Node 2 connected: true
3/11 01:19:09p Node 2 nonblocking: false
3/11 01:19:10p Node 2 null
3/11 01:19:10p Node 2 1268331550
-------------------------
also driving me insane..
does anyone have an insight on these things?
unless I'm missing something, the sock.recvline() should wait 10 seconds before moving on, but it doesnt.
Snapple "Real Fact" #18:
A jellyfish is 95% water.
Re: socket.recvline() and file_utime()
By: MCMLXXIX to Digital Man on Thu Mar 11 2010 01:22 pm
file_touch("test.txt");
log("original mod_time: " + file_date("test.txt"));
log("changing file mod_time to 1267455497"); file_utime("test.txt",1267455497,1267455497);
log("new file mod_time: " + file_date("test.txt")); file_remove("test.txt");
OUTPUT:
3/11 01:10:51p Node 1 original mod_time: 1268331052
3/11 01:10:51p Node 1 changing file mod_time to 1267455497
3/11 01:10:51p Node 1 new file mod_time: 1267455498
It's driving me insane.. doesn't make sense
What filesystem is "test.txt" being stored on? Some filesystems (e.g. FAT, FAT32) only support 2-second granularity for file date/times.
Here's a Microsoft article on the subject:
http://msdn.microsoft.com/en-us/library/ms724290%28VS.85%29.aspx
----------------------------------------------------
var sock=new Socket();
sock.bind(10088);
Don't bind specific port numbers for outbound connections (as we discussed).
sock.connect("localhost",25);
log(time());
log("connected: " + sock.is_connected);
log("nonblocking: " + sock.nonblocking);
OUTPUT:
3/11 01:19:09p Node 2 1268331549
3/11 01:19:09p Node 2 connected: true
3/11 01:19:09p Node 2 nonblocking: false
3/11 01:19:10p Node 2 null
3/11 01:19:10p Node 2 1268331550
-------------------------
also driving me insane..
does anyone have an insight on these things?
unless I'm missing something, the sock.recvline() should wait 10 seconds before moving on, but it doesnt.
I guess you didn't paste all your code - there was no call to recvline() the
digital man
Sysop: | fluid |
---|---|
Location: | wickliffe, ohio |
Users: | 5 |
Nodes: | 10 (0 / 10) |
Uptime: | 203:09:38 |
Calls: | 50 |
Files: | 15,838 |
Messages: | 50,766 |