Laurent MONIN
de2264f712
ftp_process_dirlist(): minor test optiization.
2006-06-10 01:12:38 +02:00
Laurent MONIN
6960fc8feb
ftp_process_dirlist(): drop stale debug code, spotted by Miciah.
2006-06-10 00:58:50 +02:00
Miciah Dashiel Butler Masters
14595404d1
ftp_process_dirlist: Rename local variable bufp to line_length.
2006-06-09 21:46:47 +00:00
Miciah Dashiel Butler Masters
71ec83c0de
ftp_get_line: Reflow some code.
2006-06-09 21:43:36 +00:00
Miciah Dashiel Butler Masters
2d49225db3
ftp_get_line: Reflow some code.
2006-06-09 21:43:18 +00:00
Miciah Dashiel Butler Masters
e1ea1cf2bb
ftp_get_line: Don't update *@len if returning -1.
2006-06-09 21:42:16 +00:00
Miciah Dashiel Butler Masters
ea5b06c329
ftp_process_dirlist: Drop a silly comment.
2006-06-09 21:39:51 +00:00
Miciah Dashiel Butler Masters
4122a97a03
Factor ftp_get_line out of ftp_process_dirlist.
...
Per Quiznos's suggestion.
2006-06-09 21:38:06 +00:00
Miciah Dashiel Butler Masters
585f7c5f2b
ftp_process_dirlist: check for bufl == 0 earlier.
2006-06-09 20:17:57 +00:00
Miciah Dashiel Butler Masters
dafc209c61
Simplify ftp_process_dirlist via memchr.
2006-06-09 20:16:35 +00:00
Miciah Dashiel Butler Masters
8c3d7a8e72
Fix data: protocol
...
Increment conn->from by the length of the data so that when
abort_connection calls normalize_cache_entry, it doesn't truncate the
cache entry to 0 length.
2006-06-08 17:42:27 +00:00
Kalle Olavi Niemitalo
819b6fab80
parse_header_param stores the string via a pointer parameter.
...
Its return value is now an enum that lets callers know whether an
error occurred. However, this commit changes the callers only
minimally, so they do not yet check the return value.
2006-06-05 20:22:53 +00:00
Miciah Dashiel Butler Masters
d6d72a6ff5
Relabel the auth module
...
As noted by Jonas Fonseca, the auth module is used by FTP as well as HTTP,
so take 'HTTP' out of the name.
2006-06-02 19:08:09 +00:00
Kalle Olavi Niemitalo
d10a489a14
BFU: Mark format strings in struct listbox_ops_messages.
...
With regular comments in the definition of the structure itself,
and with xgettext:c-format comments in constants of that type,
if xgettext would otherwise guess wrong; so that translators
will know they'll have to double any percent signs they add.
I didn't regenerate PO files, though.
2006-06-02 19:08:09 +00:00
Laurent MONIN
1d3656a317
Pass a pointer to a hash pointer to free_hash() to ensure hash pointer
...
is NULL on return.
2006-05-31 19:33:36 +02:00
Laurent MONIN
54099f5286
Do not export init_hash(),strhash() and hash_size() anymore, use a
...
wrapper named init_hash8() instead.
2006-05-31 19:17:01 +02:00
Miciah Dashiel Butler Masters
337958d4e4
Modularise HTTP authentication
2006-05-20 15:01:23 +00:00
Miciah Dashiel Butler Masters
eee3ecdbbc
BitTorrent: Remove superfluous check and assignment
...
unchoke_bittorrent_peer checks and clears peer->remote.choked,
so do not do so in the caller.
2006-05-20 12:13:32 +00:00
Miciah Dashiel Butler Masters
fe07757574
BitTorrent: Remove a superfluous check and assignment
...
choke_bittorrent_peer checks and sets peer->remote.choked,
so do not do it again in the caller.
2006-05-20 12:13:30 +00:00
Witold Filipczyk
f377e6f4af
copiousoutput: only mark /dev/fd/%d as popen data . I reflect if ELinks may
...
run out of fds
2006-05-09 09:42:00 +02:00
Witold Filipczyk
4dc4ea47f2
copiousoutput: cleanup after copiousoutput handling. Temporary files should
...
be deleted
2006-05-09 09:36:16 +02:00
Witold Filipczyk
9c3817675f
set_nonblocking_fd seems to be superfluous
2006-05-06 08:07:38 +02:00
Witold Filipczyk
c283f8cfd9
Gradual rendering in pager mode. ELinks is almost as good as less.
...
TODO: cg-log -c | elinks
2006-05-05 21:12:10 +02:00
Witold Filipczyk
e0103c2c68
Drop unnecessary cgi_pipes[2]
2006-05-03 21:46:39 +02:00
Witold Filipczyk
8b77bc6617
enum connection_state instead of int to satisfy tcc
2006-04-05 16:27:16 +02:00
Witold Filipczyk
55bd690b88
Files under /usr/share/doc/ncurses-c++-devel-5.5 (directory with
...
+ in filename) were unreachable. This is fix for it
2006-04-04 20:21:20 +02:00
Witold Filipczyk
1fc28980d7
Parsing filesize on ftp.task.gda.pl
2006-03-16 22:13:40 +01:00
Kalle Olavi Niemitalo
4217f2c555
Merge with http://elinks.cz/elinks.git
2006-02-18 12:21:47 +02:00
Miciah Dashiel Butler Masters
190259ca22
mem_alloc_align: drop the obj type parameter
...
Instead use the object itself, i.e., replace typeof(obj) with
typeof(**ptr).
2006-02-17 17:32:59 +00:00
Kalle Olavi Niemitalo
a1f26c1f25
Merge with http://elinks.cz/elinks.git
2006-02-12 17:54:22 +02:00
Miciah Dashiel Butler Masters
daad05c055
Don't check is_in_progress_state before calling cancel_download
...
With commit 637f1e82e6
('NET: Merge
change_connection into cancel_download'), cancel_download returns
immediately if the connection is not in a result state, so save some
code by not checking is_in_progress_state before calling cancel_download.
2006-02-12 15:41:21 +00:00
Kalle Olavi Niemitalo
416bd01269
Merge with http://elinks.cz/elinks.git
2006-02-12 00:34:53 +02:00
witekfl
15b52b62e4
REFERRER is back
2006-02-11 19:11:50 +01:00
Petr Baudis
c0f98c34ce
Revert witekfl's e723ddaee6
...
This is utterly silly and breaks plenty of stuff - Witek, you CAN'T append
slashes to all hosts just because some silly referer needs it, everywhere
else we NEED the hosts without slashes!
2006-02-11 17:44:54 +01:00
Kalle Olavi Niemitalo
0066214b47
Merge with http://elinks.cz/elinks.git
2006-02-10 09:15:12 +02:00
witekfl
e723ddaee6
Add slash after host. Required by URI_HTTP_REFERRER_HOST
2006-02-09 22:46:44 +01:00
Jonas Fonseca
4b91866c84
GOPHER: Blast end_gopher_connection which now only wraps abort_connection
2006-02-08 21:47:54 +01:00
Jonas Fonseca
854bb90d88
NET: Move cache entry normalization to abort_connection
...
It simplifies the code and ensures that stuff like conn->from is properly
updated.
2006-02-08 21:40:08 +01:00
Jonas Fonseca
4bfd40ec10
NNTP: Use state instead of conn->state, since it hasn't been updated yet
...
Fixes: 1735f96a87
2006-02-08 21:04:19 +01:00
Jonas Fonseca
1735f96a87
FTP, NNTP: Normalize the cache entry before setting the connection state
...
... so it is normalized when the download callbacks are called.
2006-02-08 20:45:15 +01:00
Kalle Olavi Niemitalo
b1f8756c59
Merge with http://elinks.cz/elinks.git
2006-02-05 17:48:43 +02:00
Jonas Fonseca
3324496b57
NET: Replace change_connection with cancel_download and move_download
...
This simplifies unqueuing of downloads and makes it more obvious that
the 'change' being performed is to migrate or replace an old download
handle with a new one.
2006-02-03 10:44:28 +01:00
Jonas Fonseca
5bf39bd304
FSP: Check and exit the file 'writer' process if writes to stdout fails
...
This ensures that the 'writer' process will remove itself when the
main ELinks process for some reason decides to shutdown the connection.
Before the 'writer' process would complete it's task taking up unnecessary
system resources.
This is mostly an issue when fetching big files. Therefore only file
fetching is fixed. FIXME added about also checking return codes for write
associated with directory listing.
Reported-by: zas
2006-02-02 16:29:20 +01:00
Jonas Fonseca
4de26051b9
Ignore test files
2006-01-31 22:23:22 +01:00
Miciah Dashiel Butler Masters
db9768963f
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
...
git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 15:42:03 +00:00
41e8570e64
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 12:42:40 +01:00
aed26bf002
Introduced CGI module
2006-01-30 08:56:40 +01:00
Jonas Fonseca
ba2b6e633a
DIRLIST:Use directory listing initializer in the Gopher protocol module
2006-01-30 02:41:09 +01:00
Jonas Fonseca
94f4b2fd1d
DIRLIST: Cleanup macros used in the FTP directory listing
2006-01-30 01:29:40 +01:00
Jonas Fonseca
d8ef7e1b68
DIRLIST: Use directory listing initializer in the FSP protocol module
2006-01-30 01:25:39 +01:00